summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-12-02 21:54:19 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-12-02 21:54:19 +0000
commitaddc322c241363ddf8986aac81bc348149cc9335 (patch)
treeab114b43eab0c60d525f343587880e2d37f46841 /etc
parent8861d9750a01a2210aad2596cef207bb1e8fe5c8 (diff)
downloadpfsense-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.inc7
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++;
}
}
OpenPOWER on IntegriCloud