mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
unbound: minimal cleanups, closes #4327
This commit is contained in:
parent
07d7c28c80
commit
75d91570a0
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user