X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fntpd.c;h=ed3c04227ac086f46bbd8c9c0ef135577d15caf3;hb=5a32acd88719481cc22aaecd36f3cbc11f3a3489;hp=84512d2bea1769431e9fb92e48a392100ab76fe4;hpb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;p=collectd.git diff --git a/src/ntpd.c b/src/ntpd.c index 84512d2b..ed3c0422 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -883,6 +883,12 @@ static int ntpd_read(void) { continue; } + // `0.0.0.0` hosts are caused by POOL servers + // see https://github.com/collectd/collectd/issues/2358 + if (strcmp(peername, "0.0.0.0") == 0) { + continue; + } + refclock_id = ntpd_get_refclock_id(ptr); /* Convert the `long floating point' offset value to double */