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,7 +354,9 @@ class Fail2banRegex(object):
|
||||||
|
|
||||||
print "\nLines: %s" % self._line_stats
|
print "\nLines: %s" % self._line_stats
|
||||||
|
|
||||||
|
if self._print_all_ignored:
|
||||||
self.printLines('ignored')
|
self.printLines('ignored')
|
||||||
|
if self._print_all_missed:
|
||||||
self.printLines('missed')
|
self.printLines('missed')
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue