From 9eabb248652fc4a3ee0dc76cbcc60f6476fe3a4b Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 1 Dec 2014 16:54:47 -0600 Subject: [PATCH] also take into account the "all" option in Unbound Network Interfaces when setting 127.0.0.1 into resolv.conf. --- etc/inc/system.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 137987b61f..be9905916f 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -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; } -?> +?> \ No newline at end of file