mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
dpinger: use same exclusion magic here for now #5989
This commit is contained in:
parent
f93c287472
commit
20d31f92b0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user