From: Stefan Schantl Date: Mon, 4 Jul 2016 08:17:17 +0000 (+0200) Subject: Unblock all blocked hosts when exiting guardian. X-Git-Tag: 2.0~10 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=24f500aec588f431a2a7d2d129133dbb449ea3e4 Unblock all blocked hosts when exiting guardian. This commit will release all existing blocks when stopping guardian. Signed-off-by: Stefan Schantl --- diff --git a/guardian.in b/guardian.in index 6896a27..bbf4eb5 100644 --- a/guardian.in +++ b/guardian.in @@ -480,6 +480,9 @@ sub Shutdown () { # Stop all workers. &StopWorkers(); + # Unblock all blocked hosts. + &Guardian::Events::CallFlush(); + # Remove socket file on exit. &Guardian::Socket::RemoveSocketFile();