summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-04-16 12:29:54 +0545
committerRenato Botelho <garga@FreeBSD.org>2015-04-16 07:32:18 -0300
commit98615a3156d86aed1a560f109087d7e1ad4bf990 (patch)
tree24d776f28dae39eee19076c990f4c1351993d4d9 /etc/inc/unbound.inc
parent696b20ddaa557449f48e3aef721de1eb81ead5ca (diff)
downloadpfsense-98615a3156d86aed1a560f109087d7e1ad4bf990.zip
pfsense-98615a3156d86aed1a560f109087d7e1ad4bf990.tar.gz
Fix unbound warning when dnsallowoverride off and forwarding on
Reported in forum: https://forum.pfsense.org/index.php?topic=92437.0 The $ns array was being used further down, but if dnsallowoverride was off, the array never got created.
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 130af85..1d61d77 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -233,6 +233,8 @@ EOF;
if ($nameserver)
$dnsservers[] = $nameserver;
}
+ } else {
+ $ns = array();
}
$sys_dnsservers = array_unique(get_dns_servers());
foreach ($sys_dnsservers as $sys_dnsserver) {
OpenPOWER on IntegriCloud