diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-02-11 01:13:17 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-02-11 01:13:17 -0600 |
commit | 06e847a72929245fd8bc71c26b309bb3b7d71921 (patch) | |
tree | 0269a88e0c1b58fc572ac618602c42ed6e0d733c /usr/local/www/services_dnsmasq.php | |
parent | 51e76899e66360dc9d8e35f68282c54ccd9a4759 (diff) | |
download | pfsense-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.php | 5 |
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']; |