From 7636c54f59df82c7d2bbc09419cb59963f9a6bea Mon Sep 17 00:00:00 2001 From: Andrei Regiani Date: Tue, 1 Oct 2024 17:50:09 -0300 Subject: [PATCH] Pass knownNodes --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0178928..9261059 100644 --- a/index.js +++ b/index.js @@ -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),