summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-25 12:31:08 +0000
committerErmal <eri@pfsense.org>2010-11-25 12:31:08 +0000
commit979c816c6dfa2e618df20a0e25387c43e2888b11 (patch)
tree660ba6e5d15ed91839992b25903e9650b12b6068 /etc/inc/gwlb.inc
parenta980df9c1b8e839880295d37f6fba990cb98a30c (diff)
downloadpfsense-979c816c6dfa2e618df20a0e25387c43e2888b11.zip
pfsense-979c816c6dfa2e618df20a0e25387c43e2888b11.tar.gz
Do not guess the defaultgw this is static info.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 7362c373..8f7f381 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -291,13 +291,14 @@ function return_gateways_array($disabled = false) {
$gateway['friendlyiface'] = $gateway['interface'];
$gateway['interface'] = get_real_interface($gateway['interface']);
- /* Some interface like wan might be default but have no info recorded
+ /* FIXME: Should this be enabled.
+ * Some interface like wan might be default but have no info recorded
* the config.
- */
if ($gateway['friendlyiface'] == "wan" && !isset($gateway['defaultgw'])) {
if (file_exists("{$g['tmp_path']}/{$gateway['interface']}_defaultgw"))
$gateway['defaultgw'] = true;
}
+ */
/* include the gateway index as the attribute */
$gateway['attribute'] = $i;
@@ -532,4 +533,4 @@ function get_interface_gateway($interface, &$dynamic = false) {
return ($gw);
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud