mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-23 03:01:27 +02:00
Avoid spurious comment in jump to interface option chains.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
039fd6ddd8
commit
6e9d5f45ec
@ -7835,9 +7835,10 @@ sub add_interface_options( $ ) {
|
|||||||
} else {
|
} else {
|
||||||
for my $interface ( @input_interfaces ) {
|
for my $interface ( @input_interfaces ) {
|
||||||
$chain1ref = $input_chains{$interface};
|
$chain1ref = $input_chains{$interface};
|
||||||
add_ijump ( $chainref ,
|
my $ruleref = add_ijump ( $chainref ,
|
||||||
j => $chain1ref->{name},
|
j => $chain1ref->{name},
|
||||||
@input_interfaces > 1 ? imatch_source_dev( $interface ) : () )->{comment} = interface_origin( $interface ) if @{$chain1ref->{rules}};
|
@input_interfaces > 1 ? imatch_source_dev( $interface ) : () );
|
||||||
|
$ruleref->{comment} = interface_origin( $interface ) if @{$chain1ref->{rules}} && $config{TRACK_RULES} eq 'Yes';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user