X-Git-Url: http://git.squeep.com/?p=firewall-squeep;a=blobdiff_plain;f=common.sh;h=f2a7f549dfaf4122dfacbdcb7ce489ef7ae31e71;hp=f8860fcb1adf50868d549a147cfeb5f57ef23ea9;hb=cbf5f59efcf5d0ead93b3796840f68f4e163b8e0;hpb=26febd7376e8c1679d5d088d71d73bc64585ec1e 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} }