ODoH: try POST first, even without a relay

This commit is contained in:
Frank Denis 2021-06-07 17:19:56 +02:00
parent 4eab70b770
commit e7f017c592
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ func _fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, i
continue
}
useGet := relay == nil
useGet := false
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {
useGet = true
if _, _, _, _, err := proxy.xTransport.DoHQuery(useGet, url, odohQuery.odohMessage, proxy.timeout); err != nil {