From 3bc47d36fc89d55f76ff9dde980eae2451bc1c15 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 31 Aug 2018 14:53:56 -0700 Subject: [PATCH] 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 --- core/core.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core.go b/core/core.go index 91238f7f7..4c46d7dcf 100644 --- a/core/core.go +++ b/core/core.go @@ -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)