also take into account the "all" option in Unbound Network Interfaces when

setting 127.0.0.1 into resolv.conf.
This commit is contained in:
Chris Buechler 2014-12-01 16:54:47 -06:00
parent be5b413308
commit 9eabb24865

View File

@ -140,7 +140,7 @@ function system_resolvconf_generate($dynupdate = false) {
$syscfg = $config['system'];
if (((isset($config['dnsmasq']['enable']) && (!isset($config['dnsmasq']['port']) || $config['dnsmasq']['port'] == "53") && (empty($config['dnsmasq']['interface']) || in_array("lo0", explode(",", $config['dnsmasq']['interface']))))
|| (isset($config['unbound']['enable'])) && (!isset($config['unbound']['port']) || $config['unbound']['port'] == "53") && (empty($config['unbound']['active_interface']) || in_array("lo0", explode(",", $config['unbound']['active_interface']))))
|| (isset($config['unbound']['enable'])) && (!isset($config['unbound']['port']) || $config['unbound']['port'] == "53") && (empty($config['unbound']['active_interface']) || in_array("lo0", explode(",", $config['unbound']['active_interface'])) || in_array("all", explode(",", $config['unbound']['active_interface']), true)))
&& !isset($config['system']['dnslocalhost']))
$resolvconf .= "nameserver 127.0.0.1\n";
@ -2099,4 +2099,4 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
}
return $sourceips;
}
?>
?>