mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-08-03 22:27:49 +00:00
Fixed addBannedIP to add enough failures to trigger a ban, rather than
just one failure.
This commit is contained in:
parent
444e4ac3ed
commit
a018a26133
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue