Fix problem with 'exclude' in dynamic zones

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6354 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-15 14:05:47 +00:00
parent 99c992bace
commit 7b16789612

View File

@ -375,6 +375,7 @@ delete_from_zone() # $1 = <interface>[:<hosts>] $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 = <interface>[:<hosts>] $2 = zone
eval source_hosts=\"\$${z1}_hosts\"
for h in $source_hosts; do
[ "$h" = exclude ] && break;
iface=${h%%:*}
iface=${iface#+}
hosts=${h#*:}