ensure supported_nips is always a list, even if empty.

This commit is contained in:
fiatjaf 2023-11-23 19:37:01 -03:00
parent d608c67791
commit 8c8a435a0b
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -18,8 +18,9 @@ func NewRelay() *Relay {
Log: log.New(os.Stderr, "[khatru-relay] ", log.LstdFlags),
Info: &nip11.RelayInformationDocument{
Software: "https://github.com/fiatjaf/khatru",
Version: "n/a",
Software: "https://github.com/fiatjaf/khatru",
Version: "n/a",
SupportedNIPs: make([]int, 0),
},
upgrader: websocket.Upgrader{