]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
captive portal: Reload firewall rules after cleanup
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Oct 2017 10:09:58 +0000 (12:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Oct 2017 10:09:58 +0000 (12:09 +0200)
This is not necessary to stop any clients from accessing the
Internet, but if we know that we don't need a line for certain
any more, we can as well remove the firewall rule straight away.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/captive-cleanup

index cf73760d0d998c08a5fea4678d6a5d877659339b..b576df4fe59295373625f87483e542b415107871 100755 (executable)
@@ -46,4 +46,7 @@ if (-f $settingsfile && -f $clients && ! -z $clients){
                }
        }
        &General::writehasharray("$clients", \%clientshash);
+
+       # Reload firewall rules
+       system("/usr/local/bin/captivectrl");
 }