summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-03-24 17:12:52 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-03-24 17:12:52 -0700
commit7a9f88c587187ece112e47d7c4d077e44a6afe8a (patch)
treeb432219092ebb9e41b1152f914157a734e2feba1 /lib/Vyatta
parent5b944c222a91b63dbd3a5489ddf1cca513322dd8 (diff)
downloadvyatta-cfg-7a9f88c587187ece112e47d7c4d077e44a6afe8a.tar.gz
vyatta-cfg-7a9f88c587187ece112e47d7c4d077e44a6afe8a.zip
Fix 5203: negation in firewall rule causes deprecation message
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Misc.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index 77c6218..d666ea9 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -395,10 +395,10 @@ sub getPortRuleString {
. "up to 15 ports (port range counts as 2)" );
}
if ( $num_ports > 1 ) {
- $rule_str = " -m multiport --${prefix}ports ${negate}${port_str}";
+ $rule_str = " -m multiport $negate --${prefix}ports ${port_str}";
}
elsif ( $num_ports > 0 ) {
- $rule_str = " --${prefix}port ${negate}${port_str}";
+ $rule_str = " $negate --${prefix}port ${port_str}";
}
return ( $rule_str, undef );