From c2bdfefb626899c7c249dfc37e93c994377b568f Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Tue, 16 Jul 2013 20:58:44 +0100 Subject: [PATCH] DOC: Comment to fail2ban-regex - flagging lines matched multiple regexs --- fail2ban-regex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fail2ban-regex b/fail2ban-regex index 2c050e0d..e19b1bc9 100755 --- a/fail2ban-regex +++ b/fail2ban-regex @@ -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()