refactor: Redesign the server list from individual cards to a table layout and refine terminal modal styling.
Build Docker Container using Multistage Build / build (push) Failing after 1m38s
Build Docker Container using Multistage Build / build (push) Failing after 1m38s
This commit is contained in:
@@ -86,6 +86,14 @@ func (ws *WebServer) handleSSH(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Sscanf(r.URL.Query().Get("cols"), "%d", &cols)
|
||||
}
|
||||
|
||||
// Sanity check for dimensions
|
||||
if rows <= 0 {
|
||||
rows = 24
|
||||
}
|
||||
if cols <= 0 {
|
||||
cols = 80
|
||||
}
|
||||
|
||||
if err := session.RequestPty("xterm-256color", rows, cols, modes); err != nil {
|
||||
conn.WriteMessage(websocket.TextMessage, []byte(fmt.Sprintf("\r\n[Error] Request for PTY failed: %v\r\n", err)))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user