mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
b0d088eb6f
commit
e56a730636
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user