From 2b67b46f02cc5182e6f960458d7123859e659458 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 21 Apr 2008 20:23:02 +0000 Subject: [PATCH] Simplify an RE some more git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8474 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 6cd7fe3d3..ce01d232f 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1426,7 +1426,7 @@ sub match_source_net( $;$ ) { $net =~ s/!// if my $invert = $1 ? '! ' : ''; validate_range $addr1, $addr2; iprange_match . "${invert}--src-range $net "; - } elsif ( $net =~ /^!?~.*$/ ) { + } elsif ( $net =~ /^!?~/ ) { fatal_error "MAC address cannot be used in this context" if $restriction >= OUTPUT_RESTRICT; mac_match $net; } elsif ( $net =~ /^(!?)\+/ ) {