summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-01 22:03:57 +0800
committerBill Marquette <bill.marquette@gmail.com>2011-06-01 23:25:21 +0800
commit7af360ceef203eedbeed61dff7b89f25b5fc9e48 (patch)
tree9708eff146a00bebb56f3fea20e017667ca338ac /etc
parentf8f3732a63295d84d9bb76682177511e500050de (diff)
downloadpfsense-7af360ceef203eedbeed61dff7b89f25b5fc9e48.zip
pfsense-7af360ceef203eedbeed61dff7b89f25b5fc9e48.tar.gz
Add tunable, by default disabled, to enable the default gateway switching feature when the default one 'disappears'.
Diffstat (limited to 'etc')
-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 de9b746..17dc3c8 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -372,7 +372,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