From 4ed3cc97eb8e99d2e780236939d638fd333836bb Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Thu, 5 Apr 2012 13:31:44 +0200 Subject: [PATCH] Add input checks --- usr/local/www/services_unbound.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 86e4fe68b8..b52cbd7bda 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -66,6 +66,9 @@ if ($_POST) { unset($input_errors); $config['unbound']['enable'] = ($_POST['enable']) ? true : false; + if($config['unbound']['enable'] === true && isset($config['dnsmasq']['enable'])) + $input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver."; + $config['unbound']['custom_options'] = str_replace("\r\n", "\n", $_POST['custom_options']); if (!$input_errors) { @@ -75,8 +78,6 @@ if ($_POST) { $retval = services_unbound_configure(); $savemsg = get_std_save_message($retval); - // Relaod filter (we might need to sync to CARP hosts) - filter_configure(); } }