🚀 dashboard v0.14.7 with agent v0.14.4

This commit is contained in:
naiba
2022-11-01 21:46:02 +08:00
parent e36fae2da1
commit ab5b6eddf0
8 changed files with 47 additions and 12 deletions

View File

@@ -465,6 +465,7 @@ func handleTerminalTask(task *pb.Task) {
read, err := tty.Read(buf)
if err != nil {
conn.WriteMessage(websocket.TextMessage, []byte(err.Error()))
conn.Close()
return
}
conn.WriteMessage(websocket.BinaryMessage, buf[:read])