mirror of https://github.com/fail2ban/fail2ban
- Added log reader name
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@59 a942ae1a-1317-0410-a47c-b1dcaea8d6050.6
parent
16dbc44607
commit
deffa8f5aa
|
@ -41,6 +41,16 @@ class LogReader:
|
|||
self.ignoreIpList = []
|
||||
self.lastModTime = 0
|
||||
self.logSys = logSys
|
||||
|
||||
def setName(self, name):
|
||||
""" Sets the name of the log reader.
|
||||
"""
|
||||
self.name = name
|
||||
|
||||
def getName(self):
|
||||
""" Gets the name of the log reader.
|
||||
"""
|
||||
return self.name
|
||||
|
||||
def addIgnoreIP(self, ip):
|
||||
""" Adds an IP to the ignore list.
|
||||
|
|
Loading…
Reference in New Issue