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