Ver código fonte

Include BaseURL in nodeinfo discover href

master
Matt Baer 5 anos atrás
pai
commit
78f48007e6
2 arquivos alterados com 2 adições e 1 exclusões
  1. +1
    -0
      nodeinfo.go
  2. +1
    -1
      service.go

+ 1
- 0
nodeinfo.go Ver arquivo

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

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


+ 1
- 1
service.go Ver arquivo

@@ -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,


Carregando…
Cancelar
Salvar