mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Correct address inversion in match_arp_net()
Signed-off-by: Tom Eastep <teastep@mint14.(none)>
This commit is contained in:
parent
4fc0dba26d
commit
7f6430a383
@ -56,12 +56,9 @@ sub match_arp_net( $$$ ) {
|
||||
my $return = '';
|
||||
|
||||
if ( supplied $net ) {
|
||||
my ( $addr , $mask ) = split( $net , '/', 2 );
|
||||
|
||||
my $invert = ( $addr =~ s/^!// ) ? '! ' : '';
|
||||
|
||||
my $invert = ( $net =~ s/^!// ) ? '! ' : '';
|
||||
validate_net $net, 0;
|
||||
$return = $source ? "-s $net " : "-d $net ";
|
||||
$return = $source ? "-s ${invert}$net " : "-d ${invert}$net ";
|
||||
}
|
||||
|
||||
if ( supplied $mac ) {
|
||||
|
Loading…
Reference in New Issue
Block a user