mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: in code we should use MyTime wrapper instead of time module directly
to allow for some tests to work correctly
This commit is contained in:
parent
09355663f7
commit
8e64c281dd
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ class Filter(JailThread):
|
|||
# to enable banip fail2ban-client BAN command
|
||||
|
||||
def addBannedIP(self, ip):
|
||||
unixTime = time.time()
|
||||
unixTime = MyTime.time()
|
||||
for i in xrange(self.failManager.getMaxRetry()):
|
||||
self.failManager.addFailure(FailTicket(ip, unixTime))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue