From e3ab969047cd340333dba9fc27b253797efa1dfc Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 4 Mar 2025 00:07:31 +0100 Subject: [PATCH] increase interval for up-to-date check (to 1 minute) after error, to avoid continuous flood in log on further possible errors --- fail2ban/server/ipdns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fail2ban/server/ipdns.py b/fail2ban/server/ipdns.py index 1264479e..d188d5c8 100644 --- a/fail2ban/server/ipdns.py +++ b/fail2ban/server/ipdns.py @@ -793,6 +793,7 @@ class FileIPAddrSet(IPAddrSet): ips = splitwords(ips, ignoreComments=True) self.set(ips) except Exception as e: # pragma: no cover + self._nextCheck += 60; # increase interval to check (to 1 minute, to avoid log flood on errors) if not noError: raise e logSys.warning("Retrieving IPs set from %r failed: %s", self.fileName, e)