fix(webconsole): show exit msg for webconsole

This commit is contained in:
ioito
2023-07-05 15:20:22 +08:00
parent b57fdc6dfa
commit 7870f67b8e
+1 -1
View File
@@ -256,7 +256,7 @@ func (s *WebsocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
err = s.session.Wait()
if err != nil {
log.Errorf("ssh exist from server: %v", err)
s.StdinPipe.Write([]byte(err.Error()))
}
}()