Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: interface core test swarm peers with webrtc does not dial the co…
Browse files Browse the repository at this point in the history
…rrect address
  • Loading branch information
vasco-santos committed Apr 22, 2021
1 parent 76067b7 commit e66a651
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/interface-ipfs-core/src/swarm/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ module.exports = (common, options) => {
}
})).api

// TODO: the webrtc-star transport only keeps the last listened on address around
// so the browser has to use 1 as the array index
// await nodeA.swarm.connect(nodeB.peerId.addresses[0])
await nodeA.swarm.connect(nodeB.peerId.addresses[isBrowser ? 1 : 0])
await nodeB.swarm.connect(nodeA.peerId.addresses[0])

await delay(1000)
const peersA = await nodeA.swarm.peers()
Expand Down

0 comments on commit e66a651

Please sign in to comment.