mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 08:44:05 +01:00
Remove extra substitution
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8470 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9adb6d57f5
commit
69b61dfc55
@ -1191,7 +1191,7 @@ sub mac_match( $ ) {
|
||||
my $mac = $_[0];
|
||||
|
||||
$mac =~ s/^(!?)~//;
|
||||
$mac =~ s/^!// if my $invert = ( $1 ? '! ' : '');
|
||||
my $invert = ( $1 ? '! ' : '');
|
||||
$mac =~ tr/-/:/;
|
||||
|
||||
fatal_error "Invalid MAC address ($mac)" unless $mac =~ /^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$/;
|
||||
|
Loading…
Reference in New Issue
Block a user