ODoH: until detection is in place, without a relay, prefer GET
This commit is contained in:
parent
92792f0e8b
commit
f542edacaa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue