summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-18 20:35:43 +0000
committerErmal <eri@pfsense.org>2011-05-18 20:35:43 +0000
commitee7f1647b9b12ed6daa480cccdb456d2b3cc86b3 (patch)
treeea95c329c56171f728da5f81dab3208214a250c5
parent77b70d6bc47d6dd5da4022dc62614d7ec4a82b3f (diff)
downloadpfsense-ee7f1647b9b12ed6daa480cccdb456d2b3cc86b3.zip
pfsense-ee7f1647b9b12ed6daa480cccdb456d2b3cc86b3.tar.gz
Correct default code disabling! Ponty-hat: myself
-rw-r--r--etc/inc/gwlb.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 93c7140..9b4c32b 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -272,7 +272,6 @@ function return_gateways_array($disabled = false) {
$gateways_arr = array();
- if (0) {
$i = 0;
/* Process/add all the configured gateways. */
if (is_array($config['gateways']['gateway_item'])) {
@@ -304,7 +303,6 @@ function return_gateways_array($disabled = false) {
$i++;
}
}
- }
/* Loop through all interfaces with a gateway and add it to a array */
if ($disabled == false)
@@ -369,6 +367,7 @@ function return_gateway_groups_array() {
$gateways_arr = return_gateways_array();
$gateway_groups_array = array();
+ if (0) {
/*
* NOTE: The code below is meant to replace the default gateway when it goes down.
* This facilitates services running on pfSense itself and are not handled by a PBR to continue working.
@@ -402,6 +401,7 @@ function return_gateway_groups_array() {
}
}
unset($upgw, $dfltgwfound, $dfltgwdown, $gwname, $gwsttng);
+ }
if (is_array($config['gateways']['gateway_group'])) {
foreach($config['gateways']['gateway_group'] as $group) {
OpenPOWER on IntegriCloud