mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
Revert URL test to measure RTT
This commit is contained in:
parent
cb0aeb4df8
commit
3b6ea4bcaa
@ -207,9 +207,9 @@ func UrlTest(i *BoxInstance, link string, timeout int32) (latency int32, err err
|
||||
defer device.DeferPanicToError("box.UrlTest", func(err_ error) { err = err_ })
|
||||
if i == nil {
|
||||
// test current
|
||||
return speedtest.UrlTest(boxapi.CreateProxyHttpClient(mainInstance.Box), link, timeout, speedtest.UrlTestStandard_Handshake)
|
||||
return speedtest.UrlTest(boxapi.CreateProxyHttpClient(mainInstance.Box), link, timeout, speedtest.UrlTestStandard_RTT)
|
||||
}
|
||||
return speedtest.UrlTest(boxapi.CreateProxyHttpClient(i.Box), link, timeout, speedtest.UrlTestStandard_Handshake)
|
||||
return speedtest.UrlTest(boxapi.CreateProxyHttpClient(i.Box), link, timeout, speedtest.UrlTestStandard_RTT)
|
||||
}
|
||||
|
||||
var protectCloser io.Closer
|
||||
|
||||
Loading…
Reference in New Issue
Block a user