diff --git a/src/etc/inc/plugins.inc.d/dpinger.inc b/src/etc/inc/plugins.inc.d/dpinger.inc index bd8ef652d..3afcd3ef1 100644 --- a/src/etc/inc/plugins.inc.d/dpinger.inc +++ b/src/etc/inc/plugins.inc.d/dpinger.inc @@ -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;