diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-17 13:01:52 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-17 13:01:52 -0500 |
commit | c37ffea83833dd83f49d3368476afb73c764380a (patch) | |
tree | 28611d7a1ab0dcd571be65eb26237453db33659a /etc | |
parent | faaab0885d68e6422885e1c3d56985992e909474 (diff) | |
download | pfsense-c37ffea83833dd83f49d3368476afb73c764380a.zip pfsense-c37ffea83833dd83f49d3368476afb73c764380a.tar.gz |
only add outgoing-interface if it's an IP. Ticket #4852
Diffstat (limited to 'etc')
-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 dcf2e01..043ced2 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -171,11 +171,11 @@ EOF; $outgoing_interfaces = explode(",", $config['unbound']['outgoing_interface']); foreach ($outgoing_interfaces as $outif) { $outip = get_interface_ip($outif); - if (!is_null($outip)) { + if (is_ipaddr($outip)) { $outgoingints .= "outgoing-interface: $outip\n"; } $outip = get_interface_ipv6($outif); - if (!is_null($outip)) { + if (is_ipaddrv6($outip)) { $outgoingints .= "outgoing-interface: $outip\n"; } } |