mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
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:
parent
7b16789612
commit
9435949570
@ -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#*:}
|
||||
|
Loading…
Reference in New Issue
Block a user