From 25ebf686fce4cdb3c3fb3eaad7d2ac58863c35ca Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Thu, 23 Sep 2021 14:18:03 +0200 Subject: [PATCH] only run firewall heuristic if are actually firewalled --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c1e9c9b..43daae5 100644 --- a/index.js +++ b/index.js @@ -148,7 +148,7 @@ class DHT extends EventEmitter { // TODO: some papers describe more advanced ways of bootstrapping - we should prob look into that - let first = this._quickFirewall && !this._forcePersistent + let first = this.firewalled && this._quickFirewall && !this._forcePersistent let testNat = false const onlyFirewall = !this._forcePersistent