nip22: prevent panic, return nil if not found according to nip10.go

This commit is contained in:
1l0
2025-01-13 14:41:07 +09:00
committed by fiatjaf_
parent 8fb5cd112d
commit cb9e554fc9
4 changed files with 9 additions and 15 deletions

View File

@ -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
}