Just a safeguard

This commit is contained in:
Frank Denis 2021-06-05 17:56:35 +02:00
parent 0a1d3b725c
commit 44f3db31ee
1 changed files with 3 additions and 0 deletions

View File

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