diff --git a/dnscrypt-proxy/serversInfo.go b/dnscrypt-proxy/serversInfo.go index 9d1577c8..93adc964 100644 --- a/dnscrypt-proxy/serversInfo.go +++ b/dnscrypt-proxy/serversInfo.go @@ -338,6 +338,7 @@ func findFarthestRoute(proxy *Proxy, name string, relayStamps []stamps.ServerSta } } if serverIdx < 0 { + proxy.serversInfo.RUnlock() return nil } server := proxy.serversInfo.registeredServers[serverIdx]