1
0
mirror of https://gitlab.com/shorewall/code.git synced 2024-12-15 02:41:01 +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:
teastep 2002-12-20 21:10:53 +00:00
parent 43b6a8acc8
commit ba05611498

View File

@ -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