ODoH: try POST first, even without a relay
This commit is contained in:
parent
4eab70b770
commit
e7f017c592
|
@ -733,7 +733,7 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
useGet := relay == nil
|
useGet := false
|
||||||
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
|
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
|
||||||
useGet = true
|
useGet = true
|
||||||
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
|
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue