Commit 94c92d14 authored by Stéphane Lesimple's avatar Stéphane Lesimple

fix logic error in the behaviour of fixup_default_gateway()

parent 5958da15
......@@ -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