diff --git a/src/etc/inc/plugins.inc.d/core.inc b/src/etc/inc/plugins.inc.d/core.inc index 3e4520b83..5b6823da2 100644 --- a/src/etc/inc/plugins.inc.d/core.inc +++ b/src/etc/inc/plugins.inc.d/core.inc @@ -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'])) {