Fix problem with 'exclude' in dynamic zones -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6355 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-15 16:08:49 +00:00
parent 7b16789612
commit 9435949570

View File

@ -186,6 +186,7 @@ add_to_zone() # $1...${n-1} = <interface>[:<hosts>] $n = zone
eval dest_hosts=\"\$${z2}_hosts\"
for h in $dest_hosts; do
[ "$h" = exclude ] && break;
iface=${h%%:*}
iface=${iface#+}
hosts=${h#*:}
@ -206,6 +207,7 @@ add_to_zone() # $1...${n-1} = <interface>[:<hosts>] $n = zone
eval source_hosts=\"\$${z1}_hosts\"
for h in $source_hosts; do
[ "$h" = exclude ] && break;
iface=${h%%:*}
iface=${iface#+}
hosts=${h#*:}