修复 proxies.go

This commit is contained in:
aylz10 2024-01-16 23:24:58 +08:00 committed by Larvan2
parent 2205a90de9
commit 60974e8672

View File

@ -187,7 +187,7 @@ func convertProxies(proxies []C.Proxy, uiSubtitlePattern *regexp2.Regexp) []*Pro
Title: strings.TrimSpace(title),
Subtitle: strings.TrimSpace(subtitle),
Type: p.Type().String(),
Delay: int(p.LastDelay()),
Delay: int(p.LastDelayForTestUrl("https://www.gstatic.com/generate_204")),
})
}
return result
@ -218,7 +218,7 @@ func collectProviders(providers []provider.ProxyProvider, uiSubtitlePattern *reg
Title: strings.TrimSpace(title),
Subtitle: strings.TrimSpace(subtitle),
Type: px.Type().String(),
Delay: int(px.LastDelay()),
Delay: int(px.LastDelayForTestUrl("https://www.gstatic.com/generate_204")),
})
}
}