mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: correct comparison while comparing for "too many lines"
This commit is contained in:
parent
123ad1cc9c
commit
8c4ca29577
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ class Fail2banRegex(object):
|
|||
regexlist = self._ignoreregex
|
||||
l = lstats[ltype + '_lines_timeextracted']
|
||||
lines = len(l)*len(regexlist)
|
||||
if lines > 20 or getattr(self, '_print_all_' + ltype):
|
||||
if lines < 20 or getattr(self, '_print_all_' + ltype):
|
||||
ans = [[]]
|
||||
for arg in [l, regexlist]:
|
||||
ans = [ x + [y] for x in ans for y in arg ]
|
||||
|
|
|
|||
Loading…
Reference in a new issue