mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-28 16:39:29 +01:00
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:
parent
49fe71f71c
commit
942693a8e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user