From e56a730636d36714b29fdec9947f4b8d0f2ff443 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 21:24:07 +0000 Subject: [PATCH] Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services. --- etc/inc/gwlb.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index e26adb1455..172271da9e 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -394,7 +394,8 @@ function return_gateway_groups_array() { $dfltgwdown = true; } /* Keep a record of the last up gateway */ - if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down"))) + /* XXX: Blacklist lan for now since it might cause issues to those who have a gateway set for it */ + if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down")) && $gateways_status[$gwname]['friendlyiface'] != "lan") $upgw = $gwname; if ($dfltgwdown == true && !empty($upgw)) break;