mirror of https://github.com/fail2ban/fail2ban
set restored mark on ticket before ignore invocation (it can be checked in `ignorecommand`, considered by `ignorecache`, etc)
parent
dce2c608c1
commit
3047572701
|
@ -288,10 +288,10 @@ class Jail(object):
|
||||||
correctBanTime=correctBanTime, maxmatches=self.filter.failManager.maxMatches
|
correctBanTime=correctBanTime, maxmatches=self.filter.failManager.maxMatches
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
#logSys.debug('restored ticket: %s', ticket)
|
|
||||||
if self.filter._inIgnoreIPList(ticket.getID(), ticket): continue
|
|
||||||
# mark ticked was restored from database - does not put it again into db:
|
# mark ticked was restored from database - does not put it again into db:
|
||||||
ticket.restored = True
|
ticket.restored = True
|
||||||
|
#logSys.debug('restored ticket: %s', ticket)
|
||||||
|
if self.filter._inIgnoreIPList(ticket.getID(), ticket): continue
|
||||||
# correct start time / ban time (by the same end of ban):
|
# correct start time / ban time (by the same end of ban):
|
||||||
btm = ticket.getBanTime(forbantime)
|
btm = ticket.getBanTime(forbantime)
|
||||||
diftm = MyTime.time() - ticket.getTime()
|
diftm = MyTime.time() - ticket.getTime()
|
||||||
|
|
Loading…
Reference in New Issue