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

Commit e3a9919

Browse files
committed
fix: multiaddr validation to add peer id for listening
1 parent 763d2a0 commit e3a9919

File tree

1 file changed

+1
-1
lines changed
  • packages/ipfs/src/core/components

1 file changed

+1
-1
lines changed

packages/ipfs/src/core/components/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = ({
3939
config.Addresses.Swarm.forEach(addr => {
4040
let ma = multiaddr(addr)
4141

42-
if (ma.getPeerId()) {
42+
if (ma.getPeerId() !== peerInfo.id.toB58String()) {
4343
ma = ma.encapsulate(`/p2p/${peerInfo.id.toB58String()}`)
4444
}
4545

0 commit comments

Comments
 (0)