From 44f3db31eeab1abe59c6da48bde6926e17ddea1b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 5 Jun 2021 17:56:35 +0200 Subject: [PATCH] Just a safeguard --- dnscrypt-proxy/proxy.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dnscrypt-proxy/proxy.go b/dnscrypt-proxy/proxy.go index a2ba14dd..7d78a804 100644 --- a/dnscrypt-proxy/proxy.go +++ b/dnscrypt-proxy/proxy.go @@ -680,6 +680,9 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string, } } else if serverInfo.Proto == stamps.StampProtoTypeODoHTarget { tid := TransactionID(query) + if len(serverInfo.odohTargetConfigs) == 0 { + return + } target := serverInfo.odohTargetConfigs[0] odohQuery, err := target.encryptQuery(query) if err != nil {