From fac8d4cd25c6f3850c62084af7598bc3ec402045 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 7 May 2007 21:51:19 +0000 Subject: [PATCH] Correct fix for duplicate chain jumps git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6272 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Hosts.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shorewall-perl/Shorewall/Hosts.pm b/Shorewall-perl/Shorewall/Hosts.pm index 455c57e5d..efefcbb7d 100644 --- a/Shorewall-perl/Shorewall/Hosts.pm +++ b/Shorewall-perl/Shorewall/Hosts.pm @@ -149,6 +149,12 @@ sub find_hosts_by_option( $ ) { } } + for my $interface ( @interfaces ) { + if ( ! $interfaces{$interface}{zone} && $interfaces{$interface}{options}{$option} ) { + push @hosts, [ $interface, 'none', ALLIPv4 ]; + } + } + \@hosts; }