From: Stefan Schantl Date: Wed, 8 Jan 2020 17:19:58 +0000 (+0100) Subject: dns.cgi: Also restart unbound if a server got enabled/disabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f4bde6574d83ac197b071caaf4dd857b791ce64;p=people%2Fms%2Fipfire-2.x.git dns.cgi: Also restart unbound if a server got enabled/disabled Signed-off-by: Stefan Schantl --- 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'}) {