mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-20 16:32:27 +02:00
nip22: prevent panic, return nil if not found according to nip10.go
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
|
||||
var emptyOptions = ws.DialOptions{}
|
||||
|
||||
func getConnectionOptions(requestHeader http.Header, tlsConfig *tls.Config) *ws.DialOptions {
|
||||
func getConnectionOptions(_ http.Header, _ *tls.Config) *ws.DialOptions {
|
||||
// on javascript we ignore everything because there is nothing else we can do
|
||||
return &emptyOptions
|
||||
}
|
||||
|
Reference in New Issue
Block a user