diff --git a/websocket/websocket.go b/websocket/websocket.go index 22948f833..43e60f580 100644 --- a/websocket/websocket.go +++ b/websocket/websocket.go @@ -44,6 +44,10 @@ func ServeWs(pool *Pool, w http.ResponseWriter, r *http.Request) { // get url qu fmt.Fprintf(w, "%+v\n", err) } + if uniqueId == "" { + return + } + client := &Client{ Host: uniqueId, Conn: conn,