mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02: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 = '';
|
my $return = '';
|
||||||
|
|
||||||
if ( supplied $net ) {
|
if ( supplied $net ) {
|
||||||
my ( $addr , $mask ) = split( $net , '/', 2 );
|
my $invert = ( $net =~ s/^!// ) ? '! ' : '';
|
||||||
|
|
||||||
my $invert = ( $addr =~ s/^!// ) ? '! ' : '';
|
|
||||||
|
|
||||||
validate_net $net, 0;
|
validate_net $net, 0;
|
||||||
$return = $source ? "-s $net " : "-d $net ";
|
$return = $source ? "-s ${invert}$net " : "-d ${invert}$net ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( supplied $mac ) {
|
if ( supplied $mac ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user