From da78a4d453f3c7ee5da27b0707db96d2d7578a02 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 28 Apr 2008 17:19:18 +0000 Subject: [PATCH] Another tiny optimizaiton git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8484 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 00dbcb793..ae340dc3d 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1474,8 +1474,7 @@ sub match_orig_dest ( $ ) { return '' if $net eq ALLIPv4; return '' unless $capabilities{CONNTRACK_MATCH}; - if ( $net =~ /^!/ ) { - $net =~ s/!//; + if ( $net =~ s/^!// ) { validate_net $net, 1; "-m conntrack --ctorigdst ! $net "; } else {