From fffa65c2493e75d763aa38b944cbe8e1953cf767 Mon Sep 17 00:00:00 2001 From: Marko Hauptvogel Date: Tue, 11 Nov 2025 10:54:08 +0100 Subject: [PATCH] fix jail problem When checking against the ignoreip list, you obviously have to use the ip and not id. One testcase still fails though. --- fail2ban/server/jail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/server/jail.py b/fail2ban/server/jail.py index 7e52a01a..57ed83ee 100644 --- a/fail2ban/server/jail.py +++ b/fail2ban/server/jail.py @@ -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()