From cb40ff6027c8eb06d4f2446c4a606084a39addc0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 5 Oct 2017 12:09:58 +0200 Subject: [PATCH] captive portal: Reload firewall rules after cleanup 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 --- src/scripts/captive-cleanup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/captive-cleanup b/src/scripts/captive-cleanup index cf73760d0d..b576df4fe5 100755 --- a/src/scripts/captive-cleanup +++ b/src/scripts/captive-cleanup @@ -46,4 +46,7 @@ if (-f $settingsfile && -f $clients && ! -z $clients){ } } &General::writehasharray("$clients", \%clientshash); + + # Reload firewall rules + system("/usr/local/bin/captivectrl"); } -- 2.39.2