diff --git a/dnscrypt-proxy/serversInfo.go b/dnscrypt-proxy/serversInfo.go index 93adc964..bb7f1036 100644 --- a/dnscrypt-proxy/serversInfo.go +++ b/dnscrypt-proxy/serversInfo.go @@ -467,8 +467,9 @@ func route(proxy *Proxy, name string, serverProto stamps.StampProtoType) (*Relay } } if len(relayStamps) == 0 { - dlog.Warnf("Empty relay set for [%v]", name) - return nil, nil + err := fmt.Errorf("Non-existent relay set for server [%v]", name) + dlog.Warn(err) + return nil, err } var relayCandidateStamp *stamps.ServerStamp if !wildcard || len(relayStamps) == 1 {