[优化] 更新数据库迁移逻辑,添加 v19 版本验证,重构隧道相关表结构

This commit is contained in:
ryan
2026-06-01 14:06:36 +08:00
parent af36676e2e
commit 394e3c4855
4 changed files with 48 additions and 12 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func AgentSyncWAFIPGroups(c *gin.Context) {
// @Success 200 {object} map[string]interface{}
// @Router /api/agent/config-versions/active [get]
func AgentGetActiveConfig(c *gin.Context) {
authNode, ok := c.Get("node")
authNode, ok := c.Get("agent_node")
if !ok {
respondUnauthorized(c, "Node object missing from context")
return