mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update gwlb.inc
Correct BUG 9004 -> set the default gateway when system start and a gateway_group is default IPV4 gateway
(cherry picked from commit 67dd34a099)
This commit is contained in:
parent
2944e2f700
commit
e8a6717c9d
@ -1109,7 +1109,7 @@ function fixup_default_gateway($ipprotocol, $gateways_status, $gateways_arr) {
|
||||
$currentdefaultgwip = getcurrentdefaultgatewayip($ipprotocol);
|
||||
$found_current = false;
|
||||
foreach($gwg_members as $gwgroupitem) {
|
||||
if ($gwgroupitem['gwip'] == $currentdefaultgwip) {
|
||||
if (!empty($currentdefaultgwip) AND $gwgroupitem['gwip'] == $currentdefaultgwip) {
|
||||
$set_dfltgwname = $gwgroupitem['gw'];
|
||||
$found_current = true;
|
||||
if (isset($config['system']['gw-debug'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user