Merge pull request #2615 from cuibuwei/master
chore: fix some typos in comments
This commit is contained in:
commit
041a6c7d7f
|
@ -183,7 +183,7 @@ func FetchCurrentDNSCryptCert(
|
||||||
certCountStr = " - additional certificate"
|
certCountStr = " - additional certificate"
|
||||||
}
|
}
|
||||||
if certInfo.CryptoConstruction == UndefinedConstruction {
|
if certInfo.CryptoConstruction == UndefinedConstruction {
|
||||||
return certInfo, 0, fragmentsBlocked, errors.New("No useable certificate found")
|
return certInfo, 0, fragmentsBlocked, errors.New("No usable certificate found")
|
||||||
}
|
}
|
||||||
return certInfo, int(rtt.Nanoseconds() / 1000000), fragmentsBlocked, nil
|
return certInfo, int(rtt.Nanoseconds() / 1000000), fragmentsBlocked, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -362,7 +362,7 @@ func findFarthestRoute(proxy *Proxy, name string, relayStamps []stamps.ServerSta
|
||||||
server := proxy.serversInfo.registeredServers[serverIdx]
|
server := proxy.serversInfo.registeredServers[serverIdx]
|
||||||
proxy.serversInfo.RUnlock()
|
proxy.serversInfo.RUnlock()
|
||||||
|
|
||||||
// Fall back to random relays until the logic is implementeed for non-DNSCrypt relays
|
// Fall back to random relays until the logic is implemented for non-DNSCrypt relays
|
||||||
if server.stamp.Proto == stamps.StampProtoTypeODoHTarget {
|
if server.stamp.Proto == stamps.StampProtoTypeODoHTarget {
|
||||||
candidates := make([]int, 0)
|
candidates := make([]int, 0)
|
||||||
for relayIdx, relayStamp := range relayStamps {
|
for relayIdx, relayStamp := range relayStamps {
|
||||||
|
|
Loading…
Reference in New Issue