mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dns.cgi: Also restart unbound if a server got enabled/disabled
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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'}) {
|
||||
|
||||
Reference in New Issue
Block a user