summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-02-11 01:13:17 -0600
committerChris Buechler <cmb@pfsense.org>2015-02-11 01:13:17 -0600
commit06e847a72929245fd8bc71c26b309bb3b7d71921 (patch)
tree0269a88e0c1b58fc572ac618602c42ed6e0d733c /usr/local/www/services_dnsmasq.php
parent51e76899e66360dc9d8e35f68282c54ccd9a4759 (diff)
downloadpfsense-06e847a72929245fd8bc71c26b309bb3b7d71921.zip
pfsense-06e847a72929245fd8bc71c26b309bb3b7d71921.tar.gz
Check if Unbound is enabled and using the same port before allowing dnsmasq to be enabled. part of Ticket #4332
Diffstat (limited to 'usr/local/www/services_dnsmasq.php')
-rw-r--r--usr/local/www/services_dnsmasq.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 273f81d..a758a48 100644
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -87,6 +87,11 @@ if ($_POST) {
$config['dnsmasq']['custom_options'] = str_replace("\r\n", "\n", $_POST['custom_options']);
$config['dnsmasq']['strictbind'] = ($_POST['strictbind']) ? true : false;
+ if (isset($_POST['enable']) && isset($config['unbound']['enable'])) {
+ if ($_POST['port'] == $config['unbound']['port'])
+ $input_errors[] = "The DNS Resolver is enabled using this port. Choose a non-conflicting port, or disable DNS Resolver.";
+ }
+
if ($_POST['port'])
if(is_port($_POST['port']))
$config['dnsmasq']['port'] = $_POST['port'];
OpenPOWER on IntegriCloud