mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
system: ignore monitor status on boot
This commit is contained in:
parent
e40596e16e
commit
db8005b186
@ -664,7 +664,7 @@ function system_routing_configure($verbose = false, $interface_map = null, $moni
|
||||
|
||||
$ifdetails = legacy_interfaces_details();
|
||||
$gateways = new \OPNsense\Routing\Gateways();
|
||||
$down_gateways = isset($config['system']['gw_switch_default']) ? return_down_gateways() : [];
|
||||
$down_gateways = isset($config['system']['gw_switch_default']) && $monitor !== 'ignore' ? return_down_gateways() : [];
|
||||
$routes = json_decode(configd_run('interface routes list -n json'), true) ?? [];
|
||||
|
||||
foreach ($gateways->gatewaysIndexedByName() as $gateway) {
|
||||
@ -774,7 +774,7 @@ function system_routing_configure($verbose = false, $interface_map = null, $moni
|
||||
|
||||
service_log("done.\n", $verbose);
|
||||
|
||||
if ($monitor) {
|
||||
if ($monitor === true) {
|
||||
/* reload requested monitors only or reload in full */
|
||||
$gwnames = !empty($interface_map) ? [] : null;
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ interfaces_configure(true);
|
||||
system_resolver_configure(true); /* adapts to runtime interface configuration */
|
||||
filter_configure_sync(true);
|
||||
plugins_configure('early', true);
|
||||
system_routing_configure(true, null, false);
|
||||
system_routing_configure(true, null, 'ignore');
|
||||
|
||||
plugins_configure('dhcp', true);
|
||||
plugins_configure('dns', true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user