]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dnsbl.cgi: Actually reload Unbound if there are any changes
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Jan 2026 11:57:45 +0000 (11:57 +0000)
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 fca96c5d82c6c71b7e422014e64ec0a7d01ee6c7..7b3a109208ea1e22de3d725142544b18d3e0057f 100755 (executable)
@@ -98,6 +98,9 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") {
        # Write config hash.
        &writesettings("$settings_file", \%tmphash);
 
+       # Reload Unbound
+       &General::system("/usr/local/bin/unboundctrl", "reload");
+
 # Save changed zone ACL
 } elsif ($cgiparams{'ACTION'} eq "$Lang::tr{'update'}") {
        my %tmphash;
@@ -149,6 +152,9 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") {
                # Write the new ACL settings to settings file.
                &writesettings("$settings_file", \%tmphash);
        }
+
+       # Reload Unbound
+       &General::system("/usr/local/bin/unboundctrl", "reload");
 }
 
 &Header::openpage($Lang::tr{"dnsbl dns firewall"}, 1, '');