From ed7eb04d9f04fdb9accbe110cfcf15f8336b2b4e Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 6 Apr 2014 17:14:35 +0000 Subject: [PATCH] Missing bracket --- lib/iptables.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index efaa38b..87c6216 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -462,7 +462,7 @@ function enable_services { [[ ${service} =~ "," ]] && multiport="yes" # Do some creative work with variables to make building the iptables rules fairly painless ([[ ${service} != "-" ]] && [[ ${multiport} != "yes" ]]) && service="--dport ${service}" - ([[ ${service != "-" ]] && [[ ${multiport} == "yes" ]]) && service="-m multiport --dports ${service}" + ([[ ${service} != "-" ]] && [[ ${multiport} == "yes" ]]) && service="-m multiport --dports ${service}" [[ ${protocol} != "-" ]] && protocol="-p ${protocol}" [[ ${interface} != "-" ]] && interface="-i ${interface}" [[ ${address} != "-" ]] && srcaddress="-d ${address}"