You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes is useful host custom NTP server on different then well known (blocked) port.
What about parse port for NTP server from host using : as separator and NTP_PORT as fallback?
Define host like host := "hostname[:port]" where hostname is string containing DNS or IP address of target NTP server and optional port for target listening port number.
Right before dns resolve(InetAddress address = dnsResolver.resolve(host);).
The text was updated successfully, but these errors were encountered:
Hi,
your
SntpClient.java
has hardcoded NTP port.https://github.com/lyft/Kronos-Android/blob/master/kronos-java/src/main/java/com/lyft/kronos/internal/ntp/SntpClient.java#L91
Sometimes is useful host custom NTP server on different then well known (blocked) port.
What about parse port for NTP server from
host
using:
as separator andNTP_PORT
as fallback?Define
host
likehost := "hostname[:port]"
wherehostname
is string containing DNS or IP address of target NTP server and optionalport
for target listening port number.Right before dns resolve(
InetAddress address = dnsResolver.resolve(host);
).The text was updated successfully, but these errors were encountered: