From 7a221cf9f0b1cc3765b12d86241f746d57aff2a0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 22 Nov 2023 17:30:34 -0300 Subject: [PATCH] add missing return when checking id. --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index e1b84ee..bcd6afa 100644 --- a/handlers.go +++ b/handlers.go @@ -122,6 +122,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { id := hex.EncodeToString(hash[:]) if id != evt.ID { ws.WriteJSON(nostr.OKEnvelope{EventID: evt.ID, OK: false, Reason: "invalid: id is computed incorrectly"}) + return } // check signature