forked from extern/shorewall_code
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;
|
my %done;
|
||||||
|
|
||||||
for my $interface ( @interfaces ) {
|
for my $interface ( @interfaces ) {
|
||||||
if ( ! $interfaces{$interface}{zone} && $interfaces{$interface}{options}{$option} ) {
|
my $value = $interfaces{$interface}{options}{$option};
|
||||||
push @hosts, [ $interface, '', ALLIP , [] ];
|
if ( ! $interfaces{$interface}{zone} && $value ) {
|
||||||
|
push @hosts, [ $interface, '', ALLIP , [], $value ];
|
||||||
$done{$interface} = 1;
|
$done{$interface} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user