mirror of https://github.com/fail2ban/fail2ban
- Log parsing improvements were totally wrong. Removed
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@88 a942ae1a-1317-0410-a47c-b1dcaea8d6050.6
parent
36571c2ba9
commit
10d0070d42
|
@ -118,7 +118,7 @@ class LogReader:
|
|||
"""
|
||||
ipList = dict()
|
||||
logFile = self.openLogFile()
|
||||
self.setFilePos(logFile)
|
||||
#self.setFilePos(logFile)
|
||||
for line in logFile.readlines():
|
||||
failList = self.findFailure(line)
|
||||
for element in failList:
|
||||
|
@ -134,7 +134,7 @@ class LogReader:
|
|||
ipList[ip] = (ipList[ip][0]+1, unixTime)
|
||||
else:
|
||||
ipList[ip] = (1, unixTime)
|
||||
self.lastPos = logFile.tell()
|
||||
#self.lastPos = logFile.tell()
|
||||
logFile.close()
|
||||
return ipList
|
||||
|
||||
|
|
Loading…
Reference in New Issue