From 60d298d8988431c77a4043c783953bf3880eddbd Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Wed, 4 Dec 2013 23:36:45 +0000 Subject: [PATCH] BF: fail2ban-regex erroneously reporting multiple regexs had matched --- bin/fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex index bd99068d..b0a78828 100755 --- a/bin/fail2ban-regex +++ b/bin/fail2ban-regex @@ -428,7 +428,7 @@ class Fail2banRegex(object): " %s %s%s" % ( ip[1], timeString, - ip[3] and " (multiple regex matched)" or "")) + ip[-1] and " (multiple regex matched)" or "")) print "\n%s: %d total" % (title, total) pprint_list(out, " #) [# of hits] regular expression")