diff options
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/services_dnsmasq.php | 3 | ||||
-rw-r--r-- | usr/local/www/services_unbound.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php index 6d353da..75feda9 100644 --- a/usr/local/www/services_dnsmasq.php +++ b/usr/local/www/services_dnsmasq.php @@ -44,6 +44,7 @@ require("guiconfig.inc"); require_once("functions.inc"); require_once("filter.inc"); require_once("shaper.inc"); +require_once("system.inc"); $pconfig['enable'] = isset($config['dnsmasq']['enable']); $pconfig['regdhcp'] = isset($config['dnsmasq']['regdhcp']); @@ -119,6 +120,8 @@ if ($_POST) { filter_configure(); /* Update resolv.conf in case the interface bindings exclude localhost. */ system_resolvconf_generate(); + /* Start or restart dhcpleases when it's necessary */ + system_dhcpleases_configure(); if ($retval == 0) clear_subsystem_dirty('hosts'); diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 5677b8b..ba03d44 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -41,6 +41,7 @@ require_once("guiconfig.inc"); require_once("unbound.inc"); +require_once("system.inc"); if (!is_array($config['unbound'])) { $config['unbound'] = array(); @@ -105,6 +106,8 @@ if ($_POST) { } /* Update resolv.conf in case the interface bindings exclude localhost. */ system_resolvconf_generate(); + /* Start or restart dhcpleases when it's necessary */ + system_dhcpleases_configure(); } else { if (isset($_POST['enable']) && isset($config['dnsmasq']['enable'])) { $input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver."; |