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

Commit b940a0b

Browse files
author
Alan Shaw
committed
fix: add peer ID to addresses for go-ipfs compat
1 parent b3818f6 commit b940a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = ({ peerInfo }) => {
99
publicKey: peerInfo.id.pubKey.bytes.toString('base64'),
1010
addresses: peerInfo.multiaddrs
1111
.toArray()
12-
.map((ma) => ma.toString())
12+
.map(ma => `${ma}/p2p/${peerInfo.id.toB58String()}`)
1313
.sort(),
1414
agentVersion: `js-ipfs/${pkgversion}`,
1515
protocolVersion: '9000'

0 commit comments

Comments
 (0)