端口分配时加锁;网关上线后保存平台恢复的节点与授权数据;现在新节点连接后会按需向平台报告更新
This commit is contained in:
@@ -24,7 +24,7 @@ func Permit(ctx *fiber.Ctx) (err error) {
|
||||
|
||||
// 保存授权配置
|
||||
for _, permit := range *req {
|
||||
app.Permits.Store(permit.Id, &permit.Permit)
|
||||
app.StorePermit(&permit)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user