@cryptotaxi247 / kubo / commits / ba631bbab

fix: start the IPFS dht in server mode by default for now

Steven Allen committed Apr 6, 2020 at 18:52 UTC ba631bbab0c8b50e9937089d63eee8f16b68c07c
1 file changed +3 -1
core/node/libp2p/routingopt.go
+3 -1
@@ -26,7 +26,9 @@ func constructDHTRouting(mode dht.ModeOpt) func(ctx context.Context, host host.H
26 }
27
28 var (
29 - DHTOption RoutingOption = constructDHTRouting(dht.ModeAuto)
29 + // FIXME: Set this to dht.ModeAuto once we resolve
30 + // https://github.com/libp2p/go-libp2p-kad-dht/issues/564
31 + DHTOption RoutingOption = constructDHTRouting(dht.ModeServer)
32 DHTClientOption = constructDHTRouting(dht.ModeClient)
33 DHTServerOption = constructDHTRouting(dht.ModeServer)
34 NilRouterOption = nilrouting.ConstructNilRouting