Skip to content

Commit

Permalink
Merge pull request #2435 from stakwork/feat/add_check_for_empty_uniqu…
Browse files Browse the repository at this point in the history
…e_id

feat: added check for unique id
  • Loading branch information
elraphty authored Jan 14, 2025
2 parents 42d01f4 + f62ecf5 commit 08a2669
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 08a2669

Please sign in to comment.