mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 14:36:43 +00:00
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/
This commit is contained in:
parent
415f187644
commit
27dafea281
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue