dpinger: use same exclusion magic here for now #5989

This commit is contained in:
Franco Fichtner 2022-11-11 10:51:21 +02:00
parent f93c287472
commit 20d31f92b0

View File

@ -101,7 +101,9 @@ function dpinger_host_routes()
$routes = [];
foreach (dpinger_instances() as $gateway) {
$routes[$gateway['monitor']] = $gateway['gateway'];
if (is_ipaddr($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) {
$routes[$gateway['monitor']] = $gateway['gateway'];
}
}
return $routes;