mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08:00
- Fixed bug with "<failures>" tag
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@264 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
@@ -34,6 +34,7 @@ class Ticket:
|
||||
def __init__(self, ip, time):
|
||||
self.ip = ip
|
||||
self.time = time
|
||||
self.attempt = 0
|
||||
|
||||
def setIP(self, value):
|
||||
self.ip = value
|
||||
@@ -46,4 +47,10 @@ class Ticket:
|
||||
|
||||
def getTime(self):
|
||||
return self.time
|
||||
|
||||
def setAttempt(self, value):
|
||||
self.attempt = value
|
||||
|
||||
def getAttempt(self):
|
||||
return self.attempt
|
||||
|
||||
Reference in New Issue
Block a user