mirror of https://github.com/fail2ban/fail2ban
Merge pull request #50 from mellitus/master
Fix addBannedIP/banip command (Closes gh-31)pull/40/merge
commit
958aa2e932
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue