feat(proxy): 增加代理池演练并修复账号密码提取,发布 0.5.1

This commit is contained in:
yml
2026-11-20 12:08:13 +08:00
parent 98b3dc4b16
commit 635d80e63e
13 changed files with 874 additions and 19 deletions
+3 -2
View File
@@ -48,7 +48,8 @@ type App struct {
productsAt time.Time
// accountsMu 串行化内部账号库修改,避免并发导入、编辑或删除互相覆盖。
accountsMu sync.Mutex
accountsMu sync.Mutex
proxyDrillMu sync.Mutex
closeLog func()
closeTrace func()
@@ -256,7 +257,7 @@ func (a *App) Startup(ctx context.Context) {
proxyURL = a.effectiveProxyURL(a.getCfg())
if proxyURL != "" {
if _, err := a.getClient().ProbeServerTime(); err != nil {
if _, err := a.getClient().ProbeProxyEndpoint(); err != nil {
logger.LogEvent("代理", "warn", "启动代理探测失败: %v", err)
currentCfg := a.getCfg()
if currentCfg.ProxyEnabled &&