Fix log tag rule counting

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1275 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2004-04-20 22:00:39 +00:00
parent 49fe71f71c
commit 942693a8e7

View File

@ -1087,10 +1087,12 @@ log_rule_limit() # $1 = log level, $2 = chain, $3 = disposition , $4 = rate limi
eval rulenum=\$${chain}_logrules
[ -z "$rulenum" ] && rulenum=1
prefix="$(printf "$LOGFORMAT" $chain $rulenum $disposition)${tag:+$tag }"
rulenum=$(($rulenum + 1))
eval ${chain}_logrules=$rulenum
prefix="$(printf "$LOGFORMAT" $chain $rulenum $disposition)${tag:+$tag }"
else
prefix="$(printf "$LOGFORMAT" $chain $disposition)${tag:+$tag }"
fi