重构认证授权逻辑,集中到 auth 包中

This commit is contained in:
2025-05-12 10:07:12 +08:00
parent cfdee98a1b
commit 2c37dcc2be
40 changed files with 905 additions and 455 deletions

View File

@@ -443,7 +443,7 @@ func calcChannels(
}
if env.DebugExternalChange && next > count {
step = time.Now()
var step = time.Now()
var multiple float64 = 2 // 扩张倍数
var newConfig = g.AutoConfig{
@@ -550,7 +550,7 @@ func calcChannels(
// 提交端口配置并更新节点列表
if env.DebugExternalChange {
step = time.Now()
var step = time.Now()
var secret = strings.Split(proxy.Secret, ":")
gateway := g.NewGateway(