Bläddra i källkod

Include BaseURL in nodeinfo discover href

master
Matt Baer 5 år sedan
förälder
incheckning
78f48007e6
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. +1
    -0
      nodeinfo.go
  2. +1
    -1
      service.go

+ 1
- 0
nodeinfo.go Visa fil

@@ -16,6 +16,7 @@ const (
)

type Config struct {
BaseURL string
InfoURL string
Metadata Metadata
Protocols []NodeProtocol


+ 1
- 1
service.go Visa fil

@@ -14,7 +14,7 @@ type Service struct {

func NewService(cfg Config, r Resolver) *Service {
return &Service{
InfoURL: cfg.InfoURL,
InfoURL: cfg.BaseURL + cfg.InfoURL,
Info: NodeInfo{
Metadata: cfg.Metadata,
Protocols: cfg.Protocols,


Laddar…
Avbryt
Spara