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:
parent
30edac725b
commit
78f48007e6
@ -16,6 +16,7 @@ const (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
BaseURL string
|
||||
InfoURL string
|
||||
Metadata Metadata
|
||||
Protocols []NodeProtocol
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user