mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-15 10:14:44 +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
|
return
|
||||||
}
|
}
|
||||||
defer client.Close()
|
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)
|
sws, err := terminal.NewLogicSshWsSession(cols, rows, true, connInfo.Client, wsConn)
|
||||||
if wshandleError(wsConn, err) {
|
if wshandleError(wsConn, err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user