unbound: minimal cleanups, closes #4327

This commit is contained in:
Franco Fichtner 2021-07-20 20:52:45 +02:00
parent 07d7c28c80
commit 75d91570a0
4 changed files with 3 additions and 6 deletions

View File

@ -62,9 +62,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig = $_POST;
if (!empty($pconfig['apply'])) {
system_resolvconf_generate();
system_resolvconf_generate(); /* checks for 'enable' */
unbound_configure_do();
plugins_configure('dhcp');
plugins_configure('dhcp'); /* checks for 'enable' */
clear_subsystem_dirty('unbound');
header(url_safe('Location: /services_unbound.php'));
exit;

View File

@ -62,7 +62,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($pconfig['apply'])) {
unbound_configure_do();
plugins_configure('dhcp');
clear_subsystem_dirty('unbound');
header(url_safe('Location: /services_unbound_acls.php'));
exit;

View File

@ -100,7 +100,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config('Unbound advanced configuration changed.');
unbound_configure_do();
plugins_configure('dhcp');
clear_subsystem_dirty('unbound');
header(url_safe('Location: /services_unbound_advanced.php'));
exit;

View File

@ -46,9 +46,7 @@ foreach ($a_hosts as $i => $hostent) {
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$pconfig = $_POST;
if (!empty($pconfig['apply'])) {
system_resolvconf_generate();
unbound_configure_do();
plugins_configure('dhcp');
clear_subsystem_dirty('unbound');
header(url_safe('Location: /services_unbound_overrides.php'));
exit;