diff options
-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"; } } |