Fix dnat-only rules with 'DETECT_DNAT_ADDRS' -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6224 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-03 21:56:56 +00:00
parent 00e4876b88
commit 75e85a4003

View File

@ -1916,7 +1916,7 @@ __EOF__
run_iptables2 -A $chain $state $proto $multiport $cli $sports \
$dports $ratelimit $user $mrk -j $target
fi
elif [ "$addr" = detect ]; then
elif [ -n "$srv" -a "$addr" = detect ]; then
save_command 'done'
save_command ''
fi