mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-03-17 21:32:55 +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),
|
||||
|
||||
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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user