diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-23 22:36:56 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-23 22:36:56 +0200 |
commit | ed5c640d69ed17a83dfddcf1815fbcd9b1bcf0e4 (patch) | |
tree | 6240b81a730c8e042528305a609e3667954d6165 /etc/inc/gwlb.inc | |
parent | 839ee78fc2c31b2140bed0cdc56e0d284ce809a2 (diff) | |
download | pfsense-ed5c640d69ed17a83dfddcf1815fbcd9b1bcf0e4.zip pfsense-ed5c640d69ed17a83dfddcf1815fbcd9b1bcf0e4.tar.gz |
Test the right variable otherwise we have no hope of getting a v6 gateway
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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']; |