]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: avoid unnecessary replacement attempts
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Oct 2020 07:37:41 +0000 (09:37 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 7 Oct 2020 15:27:34 +0000 (17:27 +0200)
commitf3aea33ad43045098d2af3379ae420f24bb67cac
tree60a4fa5bd2f29d6f1decf7fb4b12d642743ba282
parent48709d9c4a1786c1131f11b45f2b8b874931b22c
ntp: avoid unnecessary replacement attempts

In the initial resolving of pool sources try to assign each address only
once. If it fails, it means the address is already used (DNS provided
the same address) or the address is not connectable. The same result can
be expected for other unresolved sources of the pool as they don't have
a real address yet.
ntp_sources.c