mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Just a safeguard
This commit is contained in:
parent
0a1d3b725c
commit
44f3db31ee
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue