1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 13:44:27 +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:
Steven Allen
2018-08-31 14:53:56 -07:00
parent 4294a5fb11
commit 3bc47d36fc

View File

@ -249,6 +249,9 @@ func (n *IpfsNode) startOnlineServices(ctx context.Context, routingOption Routin
libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(opts...))
}
// disable the default listen addrs
libp2pOpts = append(libp2pOpts, libp2p.NoListenAddrs)
// explicitly enable the default transports
libp2pOpts = append(libp2pOpts, libp2p.DefaultTransports)