@cryptotaxi247 / kubo / commits / 3bc47d36f

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>

Steven Allen committed Aug 31, 2018 at 14:53 UTC 3bc47d36fc89d55f76ff9dde980eae2451bc1c15
1 file changed +3
core/core.go
+3
@@ -249,6 +249,9 @@ func (n *IpfsNode) startOnlineServices(ctx context.Context, routingOption Routin
249 libp2pOpts = append(libp2pOpts, libp2p.EnableRelay(opts...))
250 }
251
252 + // disable the default listen addrs
253 + libp2pOpts = append(libp2pOpts, libp2p.NoListenAddrs)
254 +
255 // explicitly enable the default transports
256 libp2pOpts = append(libp2pOpts, libp2p.DefaultTransports)
257