mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 10:51:02 +01:00
Fix bad bug in find_hosts_by_option()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@376 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
43b6a8acc8
commit
ba05611498
@ -1159,7 +1159,7 @@ find_hosts_by_option() # $1 = option
|
||||
|
||||
for interface in $all_interfaces; do
|
||||
eval options=\$`chain_base ${interface}`_options
|
||||
list_search $options && \
|
||||
list_search $1 $options && \
|
||||
echo ${interface}:0.0.0.0/0
|
||||
done
|
||||
}
|
||||
@ -1679,8 +1679,7 @@ setup_nat() {
|
||||
qt ip addr del $external dev $interface
|
||||
fi
|
||||
|
||||
if [ -z "$allints" -o "$allints" = "Yes" \
|
||||
-o "$allints" = "yes" ]
|
||||
if [ -z "$allints" -o "$allints" = "Yes" -o "$allints" = "yes" ]
|
||||
then
|
||||
addnatrule nat_in -d $external -j DNAT --to-destination $internal
|
||||
addnatrule nat_out -s $internal -j SNAT --to-source $external
|
||||
|
Loading…
Reference in New Issue
Block a user