From 7b16789612d03b520ee46eefa21a26ebbef86c9b Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 15 May 2007 14:05:47 +0000 Subject: [PATCH] Fix problem with 'exclude' in dynamic zones git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6354 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-common/lib.dynamiczones | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall-common/lib.dynamiczones b/Shorewall-common/lib.dynamiczones index 92a0872f6..dba54077e 100644 --- a/Shorewall-common/lib.dynamiczones +++ b/Shorewall-common/lib.dynamiczones @@ -375,6 +375,7 @@ delete_from_zone() # $1 = [:] $2 = zone [ "$z2" = "$zone" ] && dest_hosts="$dest_hosts $hostlist" for h in $dest_hosts; do + [ "$h" = exclude ] && break; iface=${h%%:*} iface=${iface#+} hosts=${h#*:} @@ -392,6 +393,7 @@ delete_from_zone() # $1 = [:] $2 = zone eval source_hosts=\"\$${z1}_hosts\" for h in $source_hosts; do + [ "$h" = exclude ] && break; iface=${h%%:*} iface=${iface#+} hosts=${h#*:}