Skip to content

Commit

Permalink
feat: added check for unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Jan 14, 2025
1 parent 42d01f4 commit f62ecf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f62ecf5

Please sign in to comment.