From 20d31f92b05969287c2834a089f770f45a7d06fc Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 11 Nov 2022 10:51:21 +0200 Subject: [PATCH] dpinger: use same exclusion magic here for now #5989 --- src/etc/inc/plugins.inc.d/dpinger.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;