Skip to content

Commit

Permalink
ping method considered harmless
Browse files Browse the repository at this point in the history
  • Loading branch information
jiftechnify authored and fiatjaf committed Oct 1, 2024
1 parent 1b6ac1f commit db39f79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nip46/static-key-signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func (p *StaticKeySigner) HandleRequest(event *nostr.Event) (
result = plaintext
case "ping":
result = "pong"
harmless = true
default:
return req, resp, eventResponse,
fmt.Errorf("unknown method '%s'", req.Method)
Expand Down

0 comments on commit db39f79

Please sign in to comment.