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

Commit e66a651

Browse files
committed
fix: interface core test swarm peers with webrtc does not dial the correct address
1 parent 76067b7 commit e66a651

File tree

1 file changed

+1
-4
lines changed
  • packages/interface-ipfs-core/src/swarm

1 file changed

+1
-4
lines changed

packages/interface-ipfs-core/src/swarm/peers.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ module.exports = (common, options) => {
126126
}
127127
})).api
128128

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

134131
await delay(1000)
135132
const peersA = await nodeA.swarm.peers()

0 commit comments

Comments
 (0)