mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-28 18:51:52 +01:00
ensure supported_nips is always a list, even if empty.
This commit is contained in:
parent
d608c67791
commit
8c8a435a0b
5
relay.go
5
relay.go
@ -18,8 +18,9 @@ func NewRelay() *Relay {
|
|||||||
Log: log.New(os.Stderr, "[khatru-relay] ", log.LstdFlags),
|
Log: log.New(os.Stderr, "[khatru-relay] ", log.LstdFlags),
|
||||||
|
|
||||||
Info: &nip11.RelayInformationDocument{
|
Info: &nip11.RelayInformationDocument{
|
||||||
Software: "https://github.com/fiatjaf/khatru",
|
Software: "https://github.com/fiatjaf/khatru",
|
||||||
Version: "n/a",
|
Version: "n/a",
|
||||||
|
SupportedNIPs: make([]int, 0),
|
||||||
},
|
},
|
||||||
|
|
||||||
upgrader: websocket.Upgrader{
|
upgrader: websocket.Upgrader{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user