From 6c35bd9cc4d1dc208ad193c4025b058541b30263 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 21 Apr 2008 20:34:38 +0000 Subject: [PATCH] Tiny optimizaiton in match_src_net git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8475 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 ce01d232f..00dbcb793 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1432,8 +1432,7 @@ sub match_source_net( $;$ ) { } elsif ( $net =~ /^(!?)\+/ ) { require_capability( 'IPSET_MATCH' , 'ipset names in Shorewall configuration files' , '' ); join( '', '-m set ', $1 ? '! ' : '', get_set_flags( $net, 'src' ) ); - } elsif ( $net =~ /^!/ ) { - $net =~ s/!//; + } elsif ( $net =~ s/^!// ) { validate_net $net, 1; "-s ! $net "; } else {