1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-21 03:15:47 +01:00

Clear certIgnoreTimestamp if we found at live 1 live server

This commit is contained in:
Frank Denis 2018-01-21 18:14:37 +01:00
parent 8bcba92f97
commit 6ca2697128

View File

@ -109,6 +109,7 @@ func (serversInfo *ServersInfo) refresh(proxy *Proxy) (int, error) {
serversInfo.inner = inner
if innerLen > 1 {
dlog.Noticef("Server with the lowest initial latency: %s (rtt: %dms)", inner[0].Name, inner[0].initialRtt)
proxy.certIgnoreTimestamp = false
}
serversInfo.Unlock()
return liveServers, err