summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-17 20:20:40 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-17 20:20:40 -0600
commit845fd268c94e3c4de31700ce29963038e28fa017 (patch)
tree78d0e1c4d8fbd433ad5a5260e76f91ba3aeb7170 /etc/inc/unbound.inc
parentd25f09128ca047d1cc0e64909fc2d3b6ad02fe62 (diff)
downloadpfsense-845fd268c94e3c4de31700ce29963038e28fa017.zip
pfsense-845fd268c94e3c4de31700ce29963038e28fa017.tar.gz
Verify IP address before putting into unbound config. some "Array" entries were ending up there.
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index fef62c8..24c30b5 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -130,10 +130,10 @@ EOF;
$active_interfaces = explode(",", $config['unbound']['active_interface']);
foreach($active_interfaces as $ubif) {
$intip = get_interface_ip($ubif);
- if (!is_null($intip))
+ if (is_ipaddr($intip))
$bindints .= "interface: $intip\n";
$intip = get_interface_ipv6($ubif);
- if (!is_null($intip))
+ if (is_ipaddr($intip))
$bindints .= "interface: $intip\n";
}
} else {
OpenPOWER on IntegriCloud