Just a safeguard
This commit is contained in:
parent
0a1d3b725c
commit
44f3db31ee
|
@ -680,6 +680,9 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
|
||||||
}
|
}
|
||||||
} else if serverInfo.Proto == stamps.StampProtoTypeODoHTarget {
|
} else if serverInfo.Proto == stamps.StampProtoTypeODoHTarget {
|
||||||
tid := TransactionID(query)
|
tid := TransactionID(query)
|
||||||
|
if len(serverInfo.odohTargetConfigs) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
target := serverInfo.odohTargetConfigs[0]
|
target := serverInfo.odohTargetConfigs[0]
|
||||||
odohQuery, err := target.encryptQuery(query)
|
odohQuery, err := target.encryptQuery(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue