fix: 修复 staticcheck 和优化前端构建
- 修复所有 Yoda 条件错误 (ST1017) - 修复 error 格式错误 (ST1005) - 修复不必要的 blank identifier (QF1001) - 移除 tsc 重复编译,减少内存使用 - monaco-editor 改为动态导入
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ func (api WebTerminalApi) SshEndpoint(c echo.Context) error {
|
||||
|
||||
var xterm = "xterm-256color"
|
||||
var nextTerminal *term.NextTerminal
|
||||
if "true" == attributes[nt.SocksProxyEnable] {
|
||||
if attributes[nt.SocksProxyEnable] == "true" {
|
||||
nextTerminal, err = term.NewNextTerminalUseSocks(ip, port, username, password, privateKey, passphrase, rows, cols, recording, xterm, true, attributes[nt.SocksProxyHost], attributes[nt.SocksProxyPort], attributes[nt.SocksProxyUsername], attributes[nt.SocksProxyPassword])
|
||||
} else {
|
||||
nextTerminal, err = term.NewNextTerminal(ip, port, username, password, privateKey, passphrase, rows, cols, recording, xterm, true)
|
||||
|
||||
Reference in New Issue
Block a user