From ba631bbab0c8b50e9937089d63eee8f16b68c07c Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 6 Apr 2020 18:52:02 -0700 Subject: [PATCH] fix: start the IPFS dht in server mode by default for now --- core/node/libp2p/routingopt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/node/libp2p/routingopt.go b/core/node/libp2p/routingopt.go index 39d8cf977..d7f4f7a18 100644 --- a/core/node/libp2p/routingopt.go +++ b/core/node/libp2p/routingopt.go @@ -26,7 +26,9 @@ func constructDHTRouting(mode dht.ModeOpt) func(ctx context.Context, host host.H } var ( - DHTOption RoutingOption = constructDHTRouting(dht.ModeAuto) + // FIXME: Set this to dht.ModeAuto once we resolve + // https://github.com/libp2p/go-libp2p-kad-dht/issues/564 + DHTOption RoutingOption = constructDHTRouting(dht.ModeServer) DHTClientOption = constructDHTRouting(dht.ModeClient) DHTServerOption = constructDHTRouting(dht.ModeServer) NilRouterOption = nilrouting.ConstructNilRouting