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