From 8f4bde6574d83ac197b071caaf4dd857b791ce64 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Wed, 8 Jan 2020 18:19:58 +0100 Subject: [PATCH] dns.cgi: Also restart unbound if a server got enabled/disabled Signed-off-by: Stefan Schantl --- html/cgi-bin/dns.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi index 1279c69ba3..8094a3a0a2 100755 --- a/html/cgi-bin/dns.cgi +++ b/html/cgi-bin/dns.cgi @@ -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'}) { -- 2.39.2