From 2816e158936b2e37c5f2eaaa1573f034ad3f99fa Mon Sep 17 00:00:00 2001 From: bbruns Date: Sat, 12 Apr 2014 19:10:47 +0000 Subject: [PATCH] --- lib/iptables.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 6725c5c..6b60525 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -380,7 +380,7 @@ function enable_forwarding { [[ ${srcport} != "-" ]] && srcport="--sport ${srcport}" ([[ ${bidirectional} == "yes" ]] && [[ ${srcport} != "-" ]] && [[ ${srcport} != "" ]]) && revsrcport="--dport ${srcport}" ([[ ${bidirectional} == "yes" ]] && [[ ${dstport} != "-" ]] && [[ ${dstport} != "" ]]) && revdstport="--sport ${dstport}" - ([[ ${protocol} != "-" ]] && [[ ${protocol} != ""]]) && protocol="-p ${protocol}" + ([[ ${protocol} != "-" ]] && [[ ${protocol} != "" ]]) && protocol="-p ${protocol}" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${action} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${bidirectional} ${src-port} ${dst-port} ${protocol} ${syn}" @@ -389,8 +389,8 @@ function enable_forwarding { [[ ${dstinterface} == "-" ]] && dstinterface="" [[ ${dstaddress} == "-" ]] && dstaddress="" [[ ${srcaddress} == "-" ]] && srcaddress="" - ([[ ${dstport} == "-" ]] && [[ ${dstport} != ""]]) && dstport="" - ([[ ${srcport} == "-" ]] && [[ ${srcport} != ""]]) && srcport="" + ([[ ${dstport} == "-" ]] && [[ ${dstport} != "" ]]) && dstport="" + ([[ ${srcport} == "-" ]] && [[ ${srcport} != "" ]]) && srcport="" [[ ${syn} == "-" ]] && syn="" [[ ${bidirectional} == "-" ]] && bidirectional="no"