mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 19:19:15 +08:00
perf: 移除不必要的 ssh session 连接 (#1780)
* perf: 移除不必要的 ssh session 连接 --------- Co-authored-by: Eric <xplv@126.com>
This commit is contained in:
parent
7a67377aa9
commit
6a0b4a1176
@ -55,11 +55,6 @@ func (b *BaseApi) WsSsh(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
defer client.Close()
|
||||
ssConn, err := connInfo.NewSshConn(cols, rows)
|
||||
if wshandleError(wsConn, err) {
|
||||
return
|
||||
}
|
||||
defer ssConn.Close()
|
||||
|
||||
sws, err := terminal.NewLogicSshWsSession(cols, rows, true, connInfo.Client, wsConn)
|
||||
if wshandleError(wsConn, err) {
|
||||
|
Loading…
Reference in New Issue
Block a user