feat(proxy): 增加代理池演练并修复账号密码提取,发布 0.5.1
This commit is contained in:
+3
-2
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user