DOC: Comment to fail2ban-regex - flagging lines matched multiple regexs

pull/298/head
Steven Hiscocks 2013-07-16 20:58:44 +01:00
parent 1a2b6442a0
commit c2bdfefb62
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ class Fail2banRegex(object):
try:
ret = self._filter.processLine(line, checkAllRegex=True)
for match in ret:
# Append True/False flag depending if line was matched by
# more than one regex
match.append(len(ret)>1)
regex = self._failregex[match[0]]
regex.inc()