fix jail problem

When checking against the ignoreip list, you obviously have to use the
ip and not id. One testcase still fails though.
This commit is contained in:
Marko Hauptvogel 2025-11-11 10:54:08 +01:00
parent 6eb17a5602
commit fffa65c249

View file

@ -297,7 +297,7 @@ class Jail(object):
# 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
if self.filter._inIgnoreIPList(ticket.getIP(), ticket): continue
# correct start time / ban time (by the same end of ban):
btm = ticket.getBanTime(forbantime)
diftm = MyTime.time() - ticket.getTime()