1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-19 20:15:59 +08:00

[fix] incorrect data save location for latency

This commit is contained in:
tommytag
2023-12-04 18:10:45 +08:00
parent aef87b29ba
commit 2d7538aca6
3 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,10 @@ func (p *Proxy) AliveForTestUrl(url string) bool {
return p.alive.Load()
}
func (p *Proxy) OriginalHealthCheckUrl(url string) {
p.url = url
}
// Dial implements C.Proxy
func (p *Proxy) Dial(metadata *C.Metadata) (C.Conn, error) {
ctx, cancel := context.WithTimeout(context.Background(), C.DefaultTCPTimeout)