From ed5c640d69ed17a83dfddcf1815fbcd9b1bcf0e4 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Mon, 23 May 2011 22:36:56 +0200 Subject: Test the right variable otherwise we have no hope of getting a v6 gateway --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index bb7e66b..de9b746 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -579,7 +579,7 @@ function get_interface_gateway_v6($interface, &$dynamic = false) { $gw = NULL; $gwcfg = $config['interfaces'][$interface]; - if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) { + if (!empty($gwcfg['gatewayv6']) && is_array($config['gateways']['gateway_item'])) { foreach($config['gateways']['gateway_item'] as $gateway) { if(($gateway['name'] == $gwcfg['gatewayv6']) && (is_ipaddrv6($gateway['gateway']))) { $gw = $gateway['gateway']; -- cgit v1.1