1
0
mirror of https://github.com/writeas/go-nodeinfo.git synced 2025-07-26 16:58:11 +00:00

Include BaseURL in nodeinfo discover href

This commit is contained in:
Matt Baer 2018-07-23 20:10:38 +02:00
parent 30edac725b
commit 78f48007e6
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const (
)
type Config struct {
BaseURL string
InfoURL string
Metadata Metadata
Protocols []NodeProtocol

View File

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