From 9ee6c3917840989a8ae1f5a23a2960b22ae3b7f2 Mon Sep 17 00:00:00 2001 From: Marc Brooks Date: Mon, 17 Mar 2025 17:56:56 -0500 Subject: [PATCH] PR adjustments. Removed google, AWS, Apple, Microsoft, and AWS from the default NTP servers (leaving us with pool.ntp.org and time.cloudflare.com). Added http://pool.ntp.org and http://microsoft.com to the HTTP fall-back servers (after testing they will send a Date response header. --- ntp.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ntp.go b/ntp.go index 2a38ecd..a41d3e5 100644 --- a/ntp.go +++ b/ntp.go @@ -24,10 +24,6 @@ var ( defaultNTPServers = []string{ "pool.ntp.org", "time.cloudflare.com", - "time.google.com", - "time.aws.com", - "time.apple.com", - "time.windows.com", } ) @@ -98,8 +94,9 @@ func queryNetworkTime() (*time.Time, error) { } } httpUrls := []string{ + "http://pool.ntp.org", "http://apple.com", - "http://cloudflare.com", + "http://microsoft.com", } for _, url := range httpUrls { now, err := queryHttpTime(url, timeSyncTimeout)