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,
|
Path: stamp.Path,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
useGet := relay == nil
|
||||||
|
|
||||||
return ServerInfo{
|
return ServerInfo{
|
||||||
Proto: stamps.StampProtoTypeODoHTarget,
|
Proto: stamps.StampProtoTypeODoHTarget,
|
||||||
Name: name,
|
Name: name,
|
||||||
|
@ -709,7 +711,7 @@ func fetchODoHTargetInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, is
|
||||||
URL: url,
|
URL: url,
|
||||||
HostName: stamp.ProviderName,
|
HostName: stamp.ProviderName,
|
||||||
initialRtt: 100000,
|
initialRtt: 100000,
|
||||||
useGet: false,
|
useGet: useGet,
|
||||||
Relay: relay,
|
Relay: relay,
|
||||||
odohTargetConfigs: odohTargetConfigs,
|
odohTargetConfigs: odohTargetConfigs,
|
||||||
}, nil
|
}, nil
|
||||||
|
|
Loading…
Reference in New Issue