Merge pull request #50 from mellitus/master

Fix addBannedIP/banip command (Closes gh-31)
pull/40/merge
Yaroslav Halchenko 2012-05-01 15:11:00 -07:00
commit 958aa2e932
1 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,9 @@ class Filter(JailThread):
def addBannedIP(self, ip):
unixTime = time.time()
self.failManager.addFailure(FailTicket(ip, unixTime))
for i in xrange(self.failManager.getMaxRetry()):
self.failManager.addFailure(FailTicket(ip, unixTime))
return ip
##