Skip to content

Commit 624abfb

Browse files
authored
Merge pull request #3013 from lifenjoiner/refresh
2 parents 8c40578 + ae5d842 commit 624abfb

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

dnscrypt-proxy/proxy.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,7 @@ func (proxy *Proxy) StartProxy() {
297297
if proxy.showCerts {
298298
os.Exit(0)
299299
}
300-
if liveServers > 0 {
301-
dlog.Noticef("dnscrypt-proxy is ready - live servers: %d", liveServers)
302-
} else if err != nil {
300+
if liveServers <= 0 {
303301
dlog.Error(err)
304302
dlog.Notice("dnscrypt-proxy is waiting for at least one server to be reachable")
305303
}

dnscrypt-proxy/serversInfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (serversInfo *ServersInfo) refresh(proxy *Proxy) (int, error) {
285285
}
286286
}
287287
if innerLen > 0 {
288-
dlog.Noticef("Server with the lowest initial latency: %s (rtt: %dms)", inner[0].Name, inner[0].initialRtt)
288+
dlog.Noticef("Server with the lowest initial latency: %s (rtt: %dms), live servers: %d", inner[0].Name, inner[0].initialRtt, innerLen)
289289
}
290290
serversInfo.Unlock()
291291
return liveServers, err

0 commit comments

Comments
 (0)