Allow port redirection with out IP redirection

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@252 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-09-23 00:33:58 +00:00
parent b1461a478e
commit 0c9f8615c6

View File

@ -1737,7 +1737,11 @@ add_a_rule()
# A specific server or server port given
[ -n "$addr" -a "$addr" != "$serv" ] && add_nat_rule
if [ -n "$addr" -a "$addr" != "$serv" ]; then
add_nat_rule
elif [ -n "$servport" -a "$servport" != "$port" ]; then
add_nat_rule
fi
serv="${serv:+-d $serv}"