diff options
author | Ermal <eri@pfsense.org> | 2010-09-13 16:02:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-13 16:02:23 +0000 |
commit | c65e1e0da7df7b367ff97e89dad16f602571cecb (patch) | |
tree | 5333da6fb807bac46a98c801c0c1be7dfb3e26aa /etc/inc/gwlb.inc | |
parent | 4b4d550a5a95db9c1cf80930fdbae8f9db91f8b8 (diff) | |
download | pfsense-c65e1e0da7df7b367ff97e89dad16f602571cecb.zip pfsense-c65e1e0da7df7b367ff97e89dad16f602571cecb.tar.gz |
Ticket #876. Actually use the friendly name for the key of the array returned by return_gateways_array() so the dynamic gateway and status pages work correctly.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 959b200..ea303e0 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -330,14 +330,14 @@ function return_gateways_array($disabled = false) { } /* retrieve a proper monitor IP? */ - $interface = $config['interfaces'][$ifname]; - if(is_ipaddr($interface['monitorip'])) { - $gateway['monitor'] = $interface['monitorip']; - } else { + $ifcfg =& $config['interfaces'][$ifname]; + if (is_ipaddr($ifcfg['monitorip'])) + $gateway['monitor'] = $ifcfg['monitorip']; + else $gateway['monitor'] = $gateway['gateway']; - } - $gateway['descr'] = "Interface $ifname Dynamic Gateway"; - $gateways_arr[$ifname] = $gateway; + + $gateway['descr'] = "Interface {$friendly} Dynamic Gateway"; + $gateways_arr[$friendly] = $gateway; } return($gateways_arr); |