]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian: Clear ignorehash and network array on reload.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 24 Jan 2015 17:35:19 +0000 (18:35 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 24 Jan 2015 17:35:19 +0000 (18:35 +0100)
config/guardian/guardian

index 4b91efe58898252860cd0bec6aa66310790e4be9..aadb0af4d07bf12b6901434462090421b24dfae0 100644 (file)
@@ -446,6 +446,10 @@ sub build_ignore_hash {
        my $count = 0;
        my @subnets;
 
+       # Clear ignorehash and netorks array.
+       %ignorehash = ();
+       @ignored_networks = ();
+
        # Add our gatewayaddress and hostipaddr to the ignore hash
        # if the red interface is in use.
        if ($red_active) {