diff options
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/services_dhcp.php | 4 | ||||
-rw-r--r-- | usr/local/www/services_dhcp_edit.php | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 0a6f7db..c9b7cb2 100644 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -533,6 +533,10 @@ if ($_POST) { clear_subsystem_dirty('hosts'); clear_subsystem_dirty('staticmaps'); } + } else if (isset($config['unbound']['enable']) && isset($config['unbound']['regdhcpstatic'])) { + $retvaldns = services_unbound_configure(); + if ($retvaldns == 0) + clear_subsystem_dirty('unbound'); } else { $retvaldhcp = services_dhcpd_configure(); if ($retvaldhcp == 0) diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index b38d023..2df3aff 100644 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -313,6 +313,8 @@ if ($_POST) { mark_subsystem_dirty('staticmaps'); if (isset($config['dnsmasq']['enable']) && isset($config['dnsmasq']['regdhcpstatic'])) mark_subsystem_dirty('hosts'); + if (isset($config['unbound']['enable']) && isset($config['unbound']['regdhcpstatic'])) + mark_subsystem_dirty('unbound'); } header("Location: services_dhcp.php?if={$if}"); |