mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-23 21:47:52 +08:00
disable the default listen addrs
We explicitly setup listeners but we do this *after* constructing the node. fixes #5387 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -249,6 +249,9 @@ func (n *IpfsNode) startOnlineServices(ctx context.Context, routingOption Routin
|
|||||||
libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(opts...))
|
libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(opts...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable the default listen addrs
|
||||||
|
libp2pOpts = append(libp2pOpts, libp2p.NoListenAddrs)
|
||||||
|
|
||||||
// explicitly enable the default transports
|
// explicitly enable the default transports
|
||||||
libp2pOpts = append(libp2pOpts, libp2p.DefaultTransports)
|
libp2pOpts = append(libp2pOpts, libp2p.DefaultTransports)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user