mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-06 01:12:02 +00:00
Update main.go to support name and version information for NIP-11
This commit is contained in:
parent
57fb3885ad
commit
845f02b381
7
main.go
7
main.go
@ -18,6 +18,10 @@ import (
|
|||||||
"github.com/nbd-wtf/go-nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
version string
|
||||||
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
RelayName string
|
RelayName string
|
||||||
RelayPubkey string
|
RelayPubkey string
|
||||||
@ -74,6 +78,9 @@ func main() {
|
|||||||
relay.Info.Name = config.RelayName
|
relay.Info.Name = config.RelayName
|
||||||
relay.Info.PubKey = config.RelayPubkey
|
relay.Info.PubKey = config.RelayPubkey
|
||||||
relay.Info.Description = config.RelayDescription
|
relay.Info.Description = config.RelayDescription
|
||||||
|
relay.Info.Software = "WoT Relay"
|
||||||
|
relay.Info.Version = version
|
||||||
|
|
||||||
appendPubkey(config.RelayPubkey)
|
appendPubkey(config.RelayPubkey)
|
||||||
|
|
||||||
db := getDB()
|
db := getDB()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user