diff options
author | Warren Baker <warren@decoy.co.za> | 2012-04-05 13:31:44 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-04-05 13:31:44 +0200 |
commit | 4ed3cc97eb8e99d2e780236939d638fd333836bb (patch) | |
tree | bc4c131ef3ee2941ab6691c48de73cb3ff4c8e8d /usr/local/www/services_unbound.php | |
parent | f196aba3876be697bfae279c056fd43397ea0315 (diff) | |
download | pfsense-4ed3cc97eb8e99d2e780236939d638fd333836bb.zip pfsense-4ed3cc97eb8e99d2e780236939d638fd333836bb.tar.gz |
Add input checks
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r-- | usr/local/www/services_unbound.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 86e4fe6..b52cbd7 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(); } } |