]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dnsbl.cgi: Reload Unbound after changing the custom RPZ
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2026 13:31:07 +0000 (14:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Mar 2026 14:04:26 +0000 (14:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dnsbl.cgi

index 5271f546ba2c4687e2410a8dbda14b7214dfbd16..e81b144c2df4e28414127b0378447c2ad7c90c38 100644 (file)
@@ -233,7 +233,8 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") {
                # Save the domains
                &writesettings("$custom_domains_file", \%tmp);
 
-               # XXX - Add code to alter the conf and restart unbound.
+               # Reload Unbound
+               &General::system("/usr/local/bin/unboundctrl", "reload");
        }
 }