From: Justin Wind Date: Wed, 25 Jan 2017 00:41:24 +0000 (-0500) Subject: fix service add X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cbf5f59efcf5d0ead93b3796840f68f4e163b8e0;p=firewall-squeep fix service add --- diff --git a/common.sh b/common.sh index f8860fc..f2a7f54 100644 --- a/common.sh +++ b/common.sh @@ -85,9 +85,9 @@ function reload_cidr_sets(){ } function add_service_entry(){ - local port/proto - port=$(echo "${s}" | cut -d/ -f1) - proto=$(echo "${s}" | cut -d/ -f2) + local port proto + port=$(echo "$1" | cut -d/ -f1) + proto=$(echo "$1" | cut -d/ -f2) $IPSET -exist add allowed_${proto} ${port} }