Skip to content

Commit

Permalink
Call ObliviousDoHQuery() on the initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 7, 2021
1 parent e7f017c commit 45d3afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnscrypt-proxy/serversInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,9 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
}

useGet := false
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
if _, _, _, _, err := proxy.xTransport.ObliviousDoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
useGet = true
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
if _, _, _, _, err := proxy.xTransport.ObliviousDoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
continue
}
dlog.Debugf("Server [%s] doesn't appear to support POST; falling back to GET requests", name)
Expand Down

0 comments on commit 45d3afc

Please sign in to comment.