Skip to content

Commit

Permalink
relay on initial attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
billiegoose committed Jun 24, 2024
1 parent 0fb70ee commit 1e5ff05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1e5ff05

Please sign in to comment.