From cbf5f59efcf5d0ead93b3796840f68f4e163b8e0 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Tue, 24 Jan 2017 19:41:24 -0500 Subject: [PATCH] fix service add --- common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} } -- 2.43.2