]> git.ipfire.org Git - people/stevee/guardian.git/commitdiff
Add reload handler to Events module.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Feb 2016 08:33:50 +0000 (09:33 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 3 Feb 2016 08:33:50 +0000 (09:33 +0100)
This allows to call a Reload by sending the corresponding
command via socket.

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

index cfc785ffc24ba00f430a4345558f79560b83fdd7..b70bbb58c2908d2a30436e6a17c28e2650eac928 100644 (file)
@@ -12,6 +12,7 @@ my %commands = (
        'block' => \&CallBlock,
        'unblock' => \&CallUnblock,
        'flush' => \&CallFlush,
+       'reload' => \&main::Reload,
 );
 
 # Hash to store addresses and their current count.