ODoH: until detection is in place, without a relay, prefer GET

This commit is contained in:
Frank Denis 2021-06-06 01:15:28 +02:00
parent 92792f0e8b
commit f542edacaa
1 changed files with 3 additions and 1 deletions

View File

@ -702,6 +702,8 @@ func fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, is
Path: stamp.Path,
}
useGet := relay == nil
return ServerInfo{
Proto: stamps.StampProtoTypeODoHTarget,
Name: name,
@ -709,7 +711,7 @@ func fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, is
URL: url,
HostName: stamp.ProviderName,
initialRtt: 100000,
useGet: false,
useGet: useGet,
Relay: relay,
odohTargetConfigs: odohTargetConfigs,
}, nil