]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
Events: Allow unblocking of addresses if the are part of the ignore list.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Jun 2018 17:12:55 +0000 (19:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 27 Jun 2018 17:12:55 +0000 (19:12 +0200)
Fixes #11247

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
modules/Events.pm

index 007ad46305f829036e34a8be48e2ea2d44f461a5..2892786ace0e2513d6d04a7c2d405ed4963ca888 100644 (file)
@@ -137,8 +137,8 @@ sub CheckAction ($$) {
                        return;
                }
 
-               # Check if address should be ignored.
-               if(&_IsOnIgnoreList($bin_address)) {
+               # Check if the given command is not "unblock" and the address should be ignored.
+               if(($command ne "unblock") && (&_IsOnIgnoreList($bin_address))) {
                        # Log message.
                        $logger->Log("info", "Ignoring event for $address, because it is part of the ignore list.");
                        return;