summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/services_unbound.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php
index 5c3caa1..e000057 100644
--- a/src/usr/local/www/services_unbound.php
+++ b/src/usr/local/www/services_unbound.php
@@ -29,6 +29,7 @@
require_once("guiconfig.inc");
require_once("unbound.inc");
+require_once("pfsense-utils.inc");
require_once("system.inc");
if (!is_array($config['unbound'])) {
@@ -153,6 +154,10 @@ if ($_POST['save']) {
$pconfig['active_interface'] = implode(",", $pconfig['active_interface']);
}
+ if ((isset($pconfig['regdhcp']) || isset($pconfig['regdhcpstatic'])) && !is_dhcp_server_enabled()) {
+ $input_errors[] = gettext("DHCP Server must be enabled for DHCP Registration to work in DNS Resolver.");
+ }
+
$display_custom_options = $pconfig['custom_options'];
$pconfig['custom_options'] = base64_encode(str_replace("\r\n", "\n", $pconfig['custom_options']));
OpenPOWER on IntegriCloud