From 1e5ff05f9ba3c2e6af065ab0e7417083b3657acc Mon Sep 17 00:00:00 2001 From: Billie Hilton <587740+billiegoose@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:49:28 -0400 Subject: [PATCH] relay on initial attempt --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 036ec8a..6dc3a3b 100644 --- a/index.js +++ b/index.js @@ -161,7 +161,7 @@ module.exports = class Hyperswarm extends EventEmitter { return } - const relayThrough = this._maybeRelayConnection(peerInfo.forceRelaying) + const relayThrough = this._maybeRelayConnection(peerInfo.forceRelaying || peerInfo.attempts === 0) const conn = this.dht.connect(peerInfo.publicKey, { relayAddresses: peerInfo.relayAddresses, keyPair: this.keyPair,