allow enabling Unbound when dnsmasq is enabled, if they're using diff

ports. Ticket #4332
This commit is contained in:
Chris Buechler 2015-03-04 16:16:18 -06:00
parent 7df02c1e87
commit 0fe628a62f

View File

@ -110,7 +110,8 @@ if ($_POST) {
system_dhcpleases_configure();
} else {
if (isset($_POST['enable']) && isset($config['dnsmasq']['enable'])) {
$input_errors[] = "The DNS Forwarder is enabled. Disable it before enabling the DNS Resolver.";
if ($_POST['port'] == $config['dnsmasq']['port'])
$input_errors[] = "The DNS Forwarder is enabled using this port. Choose a non-conflicting port, or disable the DNS Forwarder.";
}
if (empty($_POST['active_interface'])) {