Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services.

This commit is contained in:
Ermal 2011-08-02 21:24:07 +00:00
parent b0d088eb6f
commit e56a730636

View File

@ -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;