]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
Unblock all blocked hosts when exiting guardian.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Jul 2016 08:17:17 +0000 (10:17 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 4 Jul 2016 08:17:17 +0000 (10:17 +0200)
This commit will release all existing blocks when
stopping guardian.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
guardian.in

index 6896a279a7e54c9de857e47400eca21ddc15a9c1..bbf4eb5d5036243b1ef71027910f8ce4b6a2b3b4 100644 (file)
@@ -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();