fix(api): fix an issue when using websocketExec with a standalone agent

pull/2064/head
Anthony Lapenna 2018-07-23 16:07:18 +02:00
parent 7225619456
commit f62b40dc3f
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func (handler *Handler) websocketExec(w http.ResponseWriter, r *http.Request) *h
func (handler *Handler) handleRequest(w http.ResponseWriter, r *http.Request, params *webSocketExecRequestParams) error {
r.Header.Del("Origin")
if params.nodeName != "" {
if params.nodeName != "" || params.endpoint.Type == portainer.AgentOnDockerEnvironment {
return handler.proxyWebsocketRequest(w, r, params)
}