summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2017-02-25 15:45:54 +0100
committerGitHub <noreply@github.com>2017-02-25 15:45:54 +0100
commitc3fb011938cc8d17875cffa6e556ad29dc414772 (patch)
treeff4027a7a8805f9a7eb123d007ad89cccecede10 /src/usr/local/www/services_dhcpv6.php
parenta207d2c951261d2d54de30b1ae3b3eada0898aa5 (diff)
downloadpfsense-c3fb011938cc8d17875cffa6e556ad29dc414772.zip
pfsense-c3fb011938cc8d17875cffa6e556ad29dc414772.tar.gz
Update BIND zones when adding static DHCP leases if needed (Bug #3710)
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r--src/usr/local/www/services_dhcpv6.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php
index 3762497..11aa22f 100644
--- a/src/usr/local/www/services_dhcpv6.php
+++ b/src/usr/local/www/services_dhcpv6.php
@@ -61,6 +61,30 @@ function dhcpv6_apply_changes($dhcpdv6_enable_changed) {
clear_subsystem_dirty('staticmaps');
}
}
+ /* BIND package - Bug #3710 */
+ if (!function_exists('is_package_installed')) {
+ require_once('pkg-utils.inc');
+ }
+ if (is_package_installed('pfSense-pkg-bind') && isset($config['installedpackages']['bind']['config'][0]['enable_bind'])) {
+ $reloadbind = false;
+ if (is_array($config['installedpackages']['bindzone'])) {
+ $bindzone = $config['installedpackages']['bindzone']['config'];
+ } else {
+ $bindzone = array();
+ }
+ for ($x = 0; $x < sizeof($bindzone); $x++) {
+ if ($zone['regdhcpstatic'] == 'on') {
+ $reloadbind = true;
+ break;
+ }
+ }
+ if ($reloadbind === true) {
+ if (file_exists("/usr/local/pkg/bind.inc")) {
+ require_once("/usr/local/pkg/bind.inc");
+ bind_sync();
+ }
+ }
+ }
if ($dhcpdv6_enable_changed) {
$retvalfc |= filter_configure();
}
OpenPOWER on IntegriCloud