mirror of https://github.com/fail2ban/fail2ban
restore backwards compatibility for date None
parent
ec043cd202
commit
621d8cae17
|
@ -618,6 +618,7 @@ class Filter(JailThread):
|
||||||
noDate = False
|
noDate = False
|
||||||
if date:
|
if date:
|
||||||
tupleLine = line
|
tupleLine = line
|
||||||
|
line = "".join(line)
|
||||||
self.__lastTimeText = tupleLine[1]
|
self.__lastTimeText = tupleLine[1]
|
||||||
self.__lastDate = date
|
self.__lastDate = date
|
||||||
else:
|
else:
|
||||||
|
@ -654,6 +655,8 @@ class Filter(JailThread):
|
||||||
if self.__lastDate and self.__lastDate > MyTime.time() - 60:
|
if self.__lastDate and self.__lastDate > MyTime.time() - 60:
|
||||||
tupleLine = ("", self.__lastTimeText, line)
|
tupleLine = ("", self.__lastTimeText, line)
|
||||||
date = self.__lastDate
|
date = self.__lastDate
|
||||||
|
elif self.checkFindTime and self.inOperation:
|
||||||
|
date = MyTime.time()
|
||||||
|
|
||||||
if self.checkFindTime and date is not None:
|
if self.checkFindTime and date is not None:
|
||||||
# if in operation (modifications have been really found):
|
# if in operation (modifications have been really found):
|
||||||
|
|
Loading…
Reference in New Issue