Page 1 of 1

NTP Servers not saving properly as appointed in the GUI

Posted: Sun Nov 10, 2019 4:49 pm
by stuartbh
I recently tried updating the list of NTP servers that Gargoyle uses to a different set of servers. Oddly, in succession to my placing them in the order I desired them to be, Gargoyle upon saving my updates reversed the order!?!

What I entered (in the exact order) in the GUI:

time.nist.gov
time.apple.com
0.pool.ntp.org

What I saw in the /etc/config/system file after saving:

list server '0.pool.ntp.org'
list server 'time.apple.com'
list server 'time.nist.gov'

I then logged out of the router's GUI, cleared the browser's cache, logged back in and went to the NTP page and saw this as the order (which makes sense given the wrong /etc/config/system file's entries being in reverse order too):

0.pool.ntp.org
time.apple.com
time.nist.gov

This I think is a bug!

Re: NTP Servers not saving properly as appointed in the GUI

Posted: Sat Nov 16, 2019 9:28 pm
by Lantis
ntpd does not care about the order of servers, so in this case, a harmless bug.

I have corrected the underlying issue regardless.

Re: NTP Servers not saving properly as appointed in the GUI

Posted: Sat Nov 16, 2019 9:35 pm
by stuartbh
Lantis wrote:ntpd does not care about the order of servers, so in this case, a harmless bug.

I have corrected the underlying issue regardless.
Well, I am glad to hear it is getting corrected (if for no other reason to avoid confusing people unnecessarily). However, I do know that ntpd does (or at least used to, the last time I checked) try to find the best server to use based on measurements it took of all servers supplied. I presume by your comments that is still the case.

Re: NTP Servers not saving properly as appointed in the GUI

Posted: Sat Nov 16, 2019 10:17 pm
by Lantis
That is correct