]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: avoid unneccessary replacements on refresh command
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 15 May 2023 14:26:21 +0000 (16:26 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 15 May 2023 15:23:48 +0000 (17:23 +0200)
commitb2dac47c8267fb5a40320a72cd1143771fa411b8
tree66c5ec1fc65247f013e458b57c81298c55c6c658
parent6a6161dc0f854a1bd5c9c22499f7df4ffca35983
ntp: avoid unneccessary replacements on refresh command

When the refresh command is issued, instead of trying to replace all
NTP sources as if they were unreachable or falsetickers, keep using the
current address if it is still returned by the resolver for the name.
This avoids unnecessary loss of measurements and switching to
potentially unreachable addresses.
doc/chronyc.adoc
ntp_sources.c
test/simulation/147-refresh [new file with mode: 0755]