Skip to content

Commit

Permalink
fix: start the IPFS dht in server mode by default for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Apr 7, 2020
1 parent 3e6f0a7 commit ba631bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/node/libp2p/routingopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba631bb

Please sign in to comment.