提交 a10fb7aa 作者: Juan Batiz-Benet

core: set local listening addresses

上级 87c4fb2f
......@@ -127,6 +127,11 @@ func NewIpfsNode(ctx context.Context, cfg *config.Config, online bool) (n *IpfsN
}
n.AddChildGroup(n.Network.CtxGroup())
// explicitly set these as our listen addrs.
// (why not do it inside inet.NewNetwork? because this way we can
// listen on addresses without necessarily advertising those publicly.)
n.Peerstore.AddAddresses(n.Identity, n.Network.ListenAddresses())
// setup diagnostics service
n.Diagnostics = diag.NewDiagnostics(n.Identity, n.Network)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论