diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-17 20:20:40 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-17 20:20:40 -0600 |
commit | 845fd268c94e3c4de31700ce29963038e28fa017 (patch) | |
tree | 78d0e1c4d8fbd433ad5a5260e76f91ba3aeb7170 | |
parent | d25f09128ca047d1cc0e64909fc2d3b6ad02fe62 (diff) | |
download | pfsense-845fd268c94e3c4de31700ce29963038e28fa017.zip pfsense-845fd268c94e3c4de31700ce29963038e28fa017.tar.gz |
Verify IP address before putting into unbound config. some "Array" entries were ending up there.
-rw-r--r-- | etc/inc/unbound.inc | 4 |
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 { |