mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
Refine the rule reduction fix
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
988ee64621
commit
a7bdfcc47b
@ -2124,8 +2124,9 @@ sub find_hosts_by_option( $ ) {
|
||||
my %done;
|
||||
|
||||
for my $interface ( @interfaces ) {
|
||||
if ( ! $interfaces{$interface}{zone} && $interfaces{$interface}{options}{$option} ) {
|
||||
push @hosts, [ $interface, '', ALLIP , [] ];
|
||||
my $value = $interfaces{$interface}{options}{$option};
|
||||
if ( ! $interfaces{$interface}{zone} && $value ) {
|
||||
push @hosts, [ $interface, '', ALLIP , [], $value ];
|
||||
$done{$interface} = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user