From 4df4c7d6b53d5426257ad9a5f2b3fd69a5ce994e Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 17 Jul 2015 13:00:27 -0500 Subject: Only add outgoing-interface if IP. Ticket #4852 --- etc/inc/unbound.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/unbound.inc') 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"; } } -- cgit v1.1