mirror of https://github.com/fail2ban/fail2ban
Fix the --print-all-{missed,ignored} options.
Previously, fail2ban-regex always printed both regardless of whether those options were present or not. This commit duplicates the patch I submitted at https://sourceforge.net/p/fail2ban/patches/25/pull/644/head
parent
415f187644
commit
27dafea281
|
@ -354,8 +354,10 @@ class Fail2banRegex(object):
|
|||
|
||||
print "\nLines: %s" % self._line_stats
|
||||
|
||||
self.printLines('ignored')
|
||||
self.printLines('missed')
|
||||
if self._print_all_ignored:
|
||||
self.printLines('ignored')
|
||||
if self._print_all_missed:
|
||||
self.printLines('missed')
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue