summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-25 20:20:47 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-25 20:20:47 -0600
commit95834f84c45f512d0558da1fd364bdc26f47fe08 (patch)
treee913e250f1058212ff971dc38b9e685eb30e64be /etc/inc/system.inc
parentf72fce18ec08ce279cad77725783a5292886ef28 (diff)
downloadpfsense-95834f84c45f512d0558da1fd364bdc26f47fe08.zip
pfsense-95834f84c45f512d0558da1fd364bdc26f47fe08.tar.gz
correct logic here to omit 127.0.0.1 from resolv.conf when no DNS resolver bound there.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index fd927bd..871b7ca 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -139,8 +139,8 @@ 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']))))
+ 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['system']['dnslocalhost']))
$resolvconf .= "nameserver 127.0.0.1\n";
OpenPOWER on IntegriCloud