feat: Introduce core application structure, configuration, monitoring, and team management features.
This commit is contained in:
@@ -297,8 +297,14 @@ func runTeamRegProcess(config TeamRegConfig) {
|
||||
}
|
||||
}
|
||||
|
||||
// 解析代理
|
||||
resolvedProxy := database.Instance.ResolveProxy(config.Proxy)
|
||||
if config.Proxy != resolvedProxy && config.Proxy != "" && resolvedProxy != "" {
|
||||
addTeamRegLog(fmt.Sprintf("[系统] 代理模式: %s -> %s", config.Proxy, resolvedProxy))
|
||||
}
|
||||
|
||||
addTeamRegLog(fmt.Sprintf("[系统] 配置: 数量=%d, 并发=%d, 代理=%s",
|
||||
config.Count, config.Concurrency, config.Proxy))
|
||||
config.Count, config.Concurrency, resolvedProxy))
|
||||
|
||||
// 创建上下文用于取消
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
@@ -360,8 +366,8 @@ func runTeamRegProcess(config TeamRegConfig) {
|
||||
fmt.Fprintf(stdin, "%d\n", config.Concurrency)
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
||||
addTeamRegLog(fmt.Sprintf("[输入] 代理地址: %s", config.Proxy))
|
||||
fmt.Fprintf(stdin, "%s\n", config.Proxy)
|
||||
addTeamRegLog(fmt.Sprintf("[输入] 代理地址: %s", resolvedProxy))
|
||||
fmt.Fprintf(stdin, "%s\n", resolvedProxy)
|
||||
|
||||
// 等待进程完成
|
||||
err = cmd.Wait()
|
||||
|
||||
Reference in New Issue
Block a user