diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-12-02 21:54:19 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-12-02 21:54:19 +0000 |
commit | addc322c241363ddf8986aac81bc348149cc9335 (patch) | |
tree | ab114b43eab0c60d525f343587880e2d37f46841 /etc | |
parent | 8861d9750a01a2210aad2596cef207bb1e8fe5c8 (diff) | |
download | pfsense-addc322c241363ddf8986aac81bc348149cc9335.zip pfsense-addc322c241363ddf8986aac81bc348149cc9335.tar.gz |
* Remove duplicate
* tag array items by gateway name so we can directly refer them
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index c4de5db..ba45586 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -253,12 +253,11 @@ function return_gateways_array() { } else { $gateway['monitor'] = $gateway['gateway']; } - $gateway['interface'] = "{$ifname}"; + $gateway['interface'] = convert_friendly_interface_to_real_interface_name($ifname); $gateway['name'] = "{$ifname}"; $gateway['descr'] = "Interface {$friendly} Gateway"; $gateway['attribute'] = "system"; - $gateway['interface'] = "{$ifname}"; - $gateways_arr[] = $gateway; + $gateways_arr[$ifname] = $gateway; } } @@ -271,7 +270,7 @@ function return_gateways_array() { } /* include the gateway index as the attribute */ $gateway['attribute'] = "$i"; - $gateways_arr[] = $gateway; + $gateways_arr[$gateway['name']] = $gateway; $i++; } } |