diff --git a/pkg/node/node.go b/pkg/node/node.go index e4d070886f4..fa3f3f861b5 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -1156,9 +1156,8 @@ func NewBee( apiService.MountAPI() apiService.MountDebug() - debugService.SetP2P(p2ps) - debugService.SetSwarmAddress(&swarmAddress) - debugService.SetRedistributionAgent(agent) + apiService.SetSwarmAddress(&swarmAddress) + apiService.SetRedistributionAgent(agent) } if o.DebugAPIAddr != "" {