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

Commit c48afe6

Browse files
committed
fix: dht browser disabled
1 parent 00e0528 commit c48afe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/libp2p.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function defaultBundle ({ datastore, peerInfo, peerBook, options, config }) {
7777
},
7878
dht: {
7979
kBucketSize: get(options, 'dht.kBucketSize', 20),
80-
enabled: get(options, 'dht.enabled', true) && !(get(options, 'offline', false)),
80+
enabled: get(options, 'offline', false) ? false : undefined, // disable if offline
8181
randomWalk: {
8282
enabled: get(options, 'dht.randomWalk.enabled', true)
8383
},

0 commit comments

Comments
 (0)