mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
be5b413308
commit
9eabb24865
@ -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;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user