Skip to content

Commit 60974e8

Browse files
aylz10Larvan2
authored andcommitted
修复 proxies.go
1 parent 2205a90 commit 60974e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/golang/native/tunnel/proxies.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func convertProxies(proxies []C.Proxy, uiSubtitlePattern *regexp2.Regexp) []*Pro
187187
Title: strings.TrimSpace(title),
188188
Subtitle: strings.TrimSpace(subtitle),
189189
Type: p.Type().String(),
190-
Delay: int(p.LastDelay()),
190+
Delay: int(p.LastDelayForTestUrl("https://www.gstatic.com/generate_204")),
191191
})
192192
}
193193
return result
@@ -218,7 +218,7 @@ func collectProviders(providers []provider.ProxyProvider, uiSubtitlePattern *reg
218218
Title: strings.TrimSpace(title),
219219
Subtitle: strings.TrimSpace(subtitle),
220220
Type: px.Type().String(),
221-
Delay: int(px.LastDelay()),
221+
Delay: int(px.LastDelayForTestUrl("https://www.gstatic.com/generate_204")),
222222
})
223223
}
224224
}

0 commit comments

Comments
 (0)