diff options
author | Warren Baker <warren@decoy.co.za> | 2014-04-28 22:22:09 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-04-28 22:22:09 +0200 |
commit | 3453affc39af184682f5c2f3c698ea0e3ee02b02 (patch) | |
tree | dca4dd68a7902e4f0a932a9a03bc4e67fda878a2 /usr/local | |
parent | d939c1d4b662508e151280aa83a18ce412404540 (diff) | |
download | pfsense-3453affc39af184682f5c2f3c698ea0e3ee02b02.zip pfsense-3453affc39af184682f5c2f3c698ea0e3ee02b02.tar.gz |
Reconfigure unbound on dhcpv4 edit
Diffstat (limited to 'usr/local')
-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}"); |