Merge branch 'master' of github.com:DNSCrypt/dnscrypt-proxy

* 'master' of github.com:DNSCrypt/dnscrypt-proxy:
  chore: fix some typos in comments
This commit is contained in:
Frank Denis 2024-04-15 12:36:30 +02:00
commit 0af88bc875
2 changed files with 2 additions and 2 deletions

View File

@ -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
} }

View File

@ -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 {