summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-01 14:03:57 +0000
committerErmal <eri@pfsense.org>2011-06-01 14:03:57 +0000
commitf4645d7f48536903d9426137c99438fd0c25a080 (patch)
tree566e07eb2181384f6f14b37f691bebe18f510e8b /etc/inc/gwlb.inc
parent9584d162d29c6c692eac0dc58292c1071e24992e (diff)
downloadpfsense-f4645d7f48536903d9426137c99438fd0c25a080.zip
pfsense-f4645d7f48536903d9426137c99438fd0c25a080.tar.gz
Add tunable, by default disabled, to enable the default gateway switching feature when the default one 'disappears'.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 9b4c32b..66a0af3 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -367,7 +367,7 @@ function return_gateway_groups_array() {
$gateways_arr = return_gateways_array();
$gateway_groups_array = array();
- if (0) {
+ if (isset($config['system']['gw_switch_default'])) {
/*
* 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.
OpenPOWER on IntegriCloud