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

This commit is contained in:
Matthias Hinrichs
2026-02-18 01:13:48 +01:00
parent e68e355e3f
commit da26078383
2 changed files with 64 additions and 65 deletions
+8
View File
@@ -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