mirror of https://github.com/fail2ban/fail2ban
DOC: Comment to fail2ban-regex - flagging lines matched multiple regexs
parent
1a2b6442a0
commit
c2bdfefb62
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue