Refine the rule reduction fix

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2014-09-11 20:58:01 -07:00
parent 988ee64621
commit a7bdfcc47b

View File

@ -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;
} }
} }