diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-12-01 16:54:47 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-12-01 16:54:47 -0600 |
commit | 9eabb248652fc4a3ee0dc76cbcc60f6476fe3a4b (patch) | |
tree | 20310b896ace0899e4869f5e46c476c18b7e378c /etc/inc | |
parent | be5b413308728e6fa4e5094a9fc6cc98950dabf4 (diff) | |
download | pfsense-9eabb248652fc4a3ee0dc76cbcc60f6476fe3a4b.zip pfsense-9eabb248652fc4a3ee0dc76cbcc60f6476fe3a4b.tar.gz |
also take into account the "all" option in Unbound Network Interfaces when
setting 127.0.0.1 into resolv.conf.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 137987b..be99059 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 |