mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
set restored mark on ticket before ignore invocation (it can be checked in ignorecommand, considered by ignorecache, etc)
This commit is contained in:
parent
dce2c608c1
commit
3047572701
1 changed files with 2 additions and 2 deletions
|
|
@ -288,10 +288,10 @@ class Jail(object):
|
|||
correctBanTime=correctBanTime, maxmatches=self.filter.failManager.maxMatches
|
||||
):
|
||||
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:
|
||||
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):
|
||||
btm = ticket.getBanTime(forbantime)
|
||||
diftm = MyTime.time() - ticket.getTime()
|
||||
|
|
|
|||
Loading…
Reference in a new issue