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

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{