small amend: lets use lower level API for restored tickets too

pull/3532/head
Sergey G. Brester 2023-06-22 13:36:18 +02:00 committed by GitHub
parent 3546071aa5
commit 7bfa133208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class Jail(object):
):
try:
#logSys.debug('restored ticket: %s', ticket)
if self.filter.inIgnoreIPList(ticket, log_ignore=True): continue
if self.filter._inIgnoreIPList(ticket.getID(), ticket): continue
# mark ticked was restored from database - does not put it again into db:
ticket.restored = True
# correct start time / ban time (by the same end of ban):