fix(backend): ssh connect

This commit is contained in:
pycook
2025-05-08 17:07:20 +08:00
parent 065f4f787f
commit f8de8a9a2e
10 changed files with 106 additions and 87 deletions

View File

@@ -88,7 +88,7 @@ func (p *Parser) AddInput(bs []byte) (cmd string, forbidden bool) {
}
p.isPrompt = true
p.curCmd = p.getCmdLocked()
p.Reset()
p.resetLocked()
filter := ""
if filter, forbidden = p.IsForbidden(p.curCmd); forbidden {
cmd = filter