From 7af360ceef203eedbeed61dff7b89f25b5fc9e48 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 1 Jun 2011 22:03:57 +0800 Subject: Add tunable, by default disabled, to enable the default gateway switching feature when the default one 'disappears'. --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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. -- cgit v1.1