diff --git a/core/init/router/proxy.go b/core/init/router/proxy.go index 0fd7f6fb46b0..ceeb1d5bf580 100644 --- a/core/init/router/proxy.go +++ b/core/init/router/proxy.go @@ -45,7 +45,7 @@ func Proxy() gin.HandlerFunc { return } - if reqPath == "/api/v2/hosts/terminal" && (currentNode == "local" || len(currentNode) == 0) { + if reqPath == "/api/v2/hosts/terminal/local" && (currentNode == "local" || len(currentNode) == 0) { proxyLocalAgent(c) return }