fix: 远程命令直连SSH(去轮询) + 去掉无用命令分类

This commit is contained in:
attacker committed 2026-06-18 07:56:10 +00:00
1 parent ed3bf59c3b
commit b8b1a3d5f6
4 files changed
+70 -68

No files matched your search

+3
View File
@@ -142,6 +142,9 @@ func Register(r *gin.Engine, db *gorm.DB, log *zap.Logger, cfg *config.Config, c
agentInstallHandler := handlers.NewAgentInstallHandler(db)
servers.POST("/:id/install-agent", agentInstallHandler.InstallAgent)
servers.POST("/install-agent", agentInstallHandler.BatchInstallAgent)
// Agent 远程命令执行
agentGroup.POST("/exec", agentInstallHandler.RemoteExec)
}
// 云账号路由