mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-14 09:41:22 +00:00
fix: routers should only use dht if enabled (#885)
This commit is contained in:
@ -35,7 +35,7 @@ class ContentRouting {
|
||||
this.dht = libp2p._dht
|
||||
|
||||
// If we have the dht, add it to the available content routers
|
||||
if (this.dht) {
|
||||
if (this.dht && libp2p._config.dht.enabled) {
|
||||
this.routers.push(this.dht)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user