]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dns.cgi: Also restart unbound if a server got enabled/disabled
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 8 Jan 2020 17:19:58 +0000 (18:19 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 8 Jan 2020 17:19:58 +0000 (18:19 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/dns.cgi

index 1279c69ba31fce8e103dd7c8aa10e7dccc6baeb2..8094a3a0a2cd68c40d77c7224d775a4cdbd5150d 100755 (executable)
@@ -216,6 +216,9 @@ if (($cgiparams{'SERVERS'} eq $Lang::tr{'save'}) || ($cgiparams{'SERVERS'} eq $L
 
                # Write the changed hash back to the config file.
                &General::writehasharray($servers_file, \%dns_servers);
+
+               # Call function to handle unbound restart, etc.
+               &_handle_unbound_and_more();
        }
 
 ## Remove entry from DNS servers list.
@@ -235,6 +238,9 @@ if (($cgiparams{'SERVERS'} eq $Lang::tr{'save'}) || ($cgiparams{'SERVERS'} eq $L
        # Write the changed hash to the config file.
        &General::writehasharray($servers_file, \%dns_servers);
 
+       # Call function to handle unbound restart, etc.
+       &_handle_unbound_and_more();
+
 ## Handle request to check the servers.
 #
 } elsif ($cgiparams{'SERVERS'} eq $Lang::tr{'dns check servers'}) {