Commit 99ca9671 authored by Ad Schellevis's avatar Ad Schellevis Committed by GitHub

Merge pull request #1694 from speed47/fixup_fixup_default_gateway

fix logic error in the behaviour of fixup_default_gateway()
parents 0946ed6e 94c92d14
......@@ -741,9 +741,6 @@ function fixup_default_gateway($gateways_status, $gateways_arr)
if (empty($upgw) && $gwsttng[$gwname]['friendlyiface'] != "lan" &&
(isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down"))) {
$upgw = $gwname;
if (!$dfltgwup) {
break;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment