-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NTP: add ability to configure multiple servers
With this change, it is possible to configure the NTP klib with multiple NTP servers, by inserting an `ntp_servers` array in the root tuple of the manifest, where each array element follows the syntax '<addr>[:<port]'; <addr> can be an IP address or a fully qualified domain name; if the optional <port> is not present, the default NTP port 123 is used. Example configuration with 2 servers: `ntp_servers:[us.pool.ntp.org 12.34.56.78:1234]` When multiple servers are configured, the NTP klib starts by using the first server, and switches to the next server (in a round robin fashion) if no valid response is received from the current server.
- Loading branch information
1 parent
6565416
commit 7cdb1d3
Showing
1 changed file
with
76 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters