mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-06-27 16:29:59 +02:00
17 lines
432 B
Go
17 lines
432 B
Go
//go:build windows
|
|
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// RunCommandWS 交互式 PTY 终端依赖 Unix PTY(见 terminal_ws_unix.go);Windows 暂不支持。
|
|
func (h *TerminalHandler) RunCommandWS(c *gin.Context) {
|
|
c.JSON(http.StatusNotImplemented, gin.H{
|
|
"error": "Interactive WebSocket terminal is not supported on Windows; use POST /terminal/run or /terminal/run/stream instead.",
|
|
})
|
|
}
|