Skip to content

Commit

Permalink
Pass knownNodes (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiRegiani authored Oct 2, 2024
1 parent 9442dfe commit 8a6bc8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module.exports = class Hyperswarm extends EventEmitter {

this.dht = opts.dht || new DHT({
bootstrap: opts.bootstrap,
debug: opts.debug
debug: opts.debug,
knownNodes: opts.knownNodes
})
this.server = this.dht.createServer({
firewall: this._handleFirewall.bind(this),
Expand Down

0 comments on commit 8a6bc8b

Please sign in to comment.