Browse Source

- Process failtickets as long as failmanager is not empty.

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@676 a942ae1a-1317-0410-a47c-b1dcaea8d605

Conflicts:

	ChangeLog
debian-releases/squeeze
Yaroslav Halchenko 17 years ago
parent
commit
48c8159de9
  1. 1
      ChangeLog
  2. 5
      server/filtergamin.py
  3. 5
      server/filterpoll.py

1
ChangeLog

@ -9,6 +9,7 @@ Fail2Ban (version 0.8.2) 2008/03/06
From ver. 0.8.3 (2008/??/??) - stable
----------
- Process failtickets as long as failmanager is not empty.
- Fixed PID file while started in daemon mode. Thanks to
Christian Jobic who submitted a similar patch.
- Fixed "fail2ban-client get <jail> logpath". Bug #1916986.

5
server/filtergamin.py

@ -108,8 +108,9 @@ class FilterGamin(FileFilter):
if self.__modified:
try:
ticket = self.failManager.toBan()
self.jail.putFailTicket(ticket)
while True:
ticket = self.failManager.toBan()
self.jail.putFailTicket(ticket)
except FailManagerEmpty:
self.failManager.cleanup(MyTime.time())
self.dateDetector.sortTemplate()

5
server/filterpoll.py

@ -103,8 +103,9 @@ class FilterPoll(FileFilter):
if self.__modified:
try:
ticket = self.failManager.toBan()
self.jail.putFailTicket(ticket)
while True:
ticket = self.failManager.toBan()
self.jail.putFailTicket(ticket)
except FailManagerEmpty:
self.failManager.cleanup(MyTime.time())
self.dateDetector.sortTemplate()

Loading…
Cancel
Save