diff --git a/packages/interface-ipfs-core/src/swarm/peers.js b/packages/interface-ipfs-core/src/swarm/peers.js index 1d4c5197a9..c26f21d68a 100644 --- a/packages/interface-ipfs-core/src/swarm/peers.js +++ b/packages/interface-ipfs-core/src/swarm/peers.js @@ -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()