Simplify an RE some more

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8474 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-04-21 20:23:02 +00:00
parent 03f93c1f5b
commit 2b67b46f02

View File

@ -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 =~ /^(!?)\+/ ) {