mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-12 17:46:20 +08:00
parent
6a8bd11fc9
commit
d7013727b9
1 changed files with 1 additions and 3 deletions
|
@ -108,9 +108,7 @@ func (sws *LocalWsSession) receiveWsMsg(exitCh chan bool) {
|
|||
if err != nil {
|
||||
global.LOG.Errorf("websock cmd string base64 decoding failed, err: %v", err)
|
||||
}
|
||||
if string(decodeBytes) != "\x03" || sws.allowCtrlC {
|
||||
sws.sendWebsocketInputCommandToSshSessionStdinPipe(decodeBytes)
|
||||
}
|
||||
sws.sendWebsocketInputCommandToSshSessionStdinPipe(decodeBytes)
|
||||
case WsMsgHeartbeat:
|
||||
err = wsConn.WriteMessage(websocket.TextMessage, wsData)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue