From e9c8664c7b0b6cffb29a52785b4636f9cd825024 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Mon, 14 Mar 2016 19:56:53 +1000 Subject: [PATCH] * suppress warning if host banned just now --- src/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jail.c b/src/jail.c index e2477bd..c796b76 100644 --- a/src/jail.c +++ b/src/jail.c @@ -189,7 +189,7 @@ f2b_jail_process(f2b_jail_t *jail) { } /* this ip was seen before */ addr->lastseen = now; - if (addr->banned) { + if (addr->banned && addr->bantime != now) { f2b_log_msg(log_warn, "jail '%s': ip %s was already banned", jail->name, matchbuf); continue; }