mirror of https://github.com/fail2ban/fail2ban
Restore bans from the database with full ticket information
In the case where we use the `ignoreCommand` with information from the ticket, we want these informations to also be included when restoring the bans from the database (the ticket may no longer be required to be banned).pull/3532/head
parent
5d9603c104
commit
3546071aa5
|
@ -295,7 +295,7 @@ class Jail(object):
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
#logSys.debug('restored ticket: %s', ticket)
|
#logSys.debug('restored ticket: %s', ticket)
|
||||||
if self.filter.inIgnoreIPList(ticket.getID(), log_ignore=True): continue
|
if self.filter.inIgnoreIPList(ticket, log_ignore=True): 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
|
||||||
# correct start time / ban time (by the same end of ban):
|
# correct start time / ban time (by the same end of ban):
|
||||||
|
|
Loading…
Reference in New Issue