Routing, gateways. ditch return_gateways_array() in core_services() to detect dpinger services. for https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis 2019-04-12 10:58:12 +02:00
parent c593906501
commit c7fa84248e

View File

@ -83,7 +83,7 @@ function core_services()
}
if (is_dpinger_enabled()) {
$gateways_arr_all = return_gateways_array(true);
$gateways_arr_all = (new \OPNsense\Routing\Gateways(legacy_interfaces_details()))->gatewaysIndexedByName(true);
foreach ($gateways_arr_all as $name => $gateway) {
if (isset($gateway['monitor_disable'])) {