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

Commit e46e6ad

Browse files
QmstreamAlan Shaw
authored and
Alan Shaw
committed
fix: ipns reference to libp2p dht config (#2182)
1 parent c5322b5 commit e46e6ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ipns/routing/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = (ipfs) => {
2222
}
2323

2424
// DHT should not be added as routing if we are offline or it is disabled
25-
if (get(ipfs._options, 'offline') || !get(ipfs._options, 'libp2p.dht.enabled', false)) {
25+
if (get(ipfs._options, 'offline') || !get(ipfs._options, 'libp2p.config.dht.enabled', false)) {
2626
const offlineDatastore = new OfflineDatastore(ipfs._repo)
2727
ipnsStores.push(offlineDatastore)
2828
} else {

0 commit comments

Comments
 (0)