mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user