Fix missing 'done' with certain DNAT rules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6824 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-09 02:34:15 +00:00
parent b62144a496
commit f284ca1cc0

View File

@ -1897,6 +1897,11 @@ __EOF__
done
fi
else
if [ "$addr" = detect ]; then
save_command 'done'
save_command ''
fi
if [ -n "$loglevel" -a -z "$natrule" ]; then
log_rule_limit $loglevel $chain $logchain $logtarget "$ratelimit" "$logtag" -A $user $mrk \
$state $(fix_bang $proto $sports $multiport $cli $(dest_ip_range $srv) $dports)
@ -1915,6 +1920,11 @@ __EOF__
done
done
else
if [ "$addr" = detect ]; then
save_command 'done'
save_command ''
fi
if [ -n "$loglevel" -a -z "$natrule" ]; then
log_rule_limit $loglevel $chain $logchain $logtarget "$ratelimit" "$logtag" -A $user $mrk \
$state $(fix_bang $proto $sports $multiport $cli $dports)