Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: really disable DHT #1991

Merged
merged 9 commits into from
Apr 12, 2019
Merged
3 changes: 2 additions & 1 deletion src/core/components/libp2p.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ function defaultBundle ({ datastore, peerInfo, peerBook, options, config }) {
},
dht: {
kBucketSize: get(options, 'dht.kBucketSize', 20),
enabled: !get(options, 'offline', false), // disable if offline, on by default
// enabled: !get(options, 'offline', false), // disable if offline, on by default
enabled: false,
randomWalk: {
enabled: false // disabled waiting for https://github.com/libp2p/js-libp2p-kad-dht/issues/86
},
Expand Down