diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-17 13:00:27 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-17 13:00:27 -0500 |
commit | 4df4c7d6b53d5426257ad9a5f2b3fd69a5ce994e (patch) | |
tree | 3ea9d0210126eb61f29f0fc1560f8b070114ab51 /etc/inc/unbound.inc | |
parent | e4b7410b9bc3622cee6797588a7d5a685d4d759e (diff) | |
download | pfsense-4df4c7d6b53d5426257ad9a5f2b3fd69a5ce994e.zip pfsense-4df4c7d6b53d5426257ad9a5f2b3fd69a5ce994e.tar.gz |
Only add outgoing-interface if IP. Ticket #4852
Diffstat (limited to 'etc/inc/unbound.inc')
-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 aaaeed8..340efcc 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -166,10 +166,10 @@ 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"; } } |