From c0f4c6c9c3672fec59c6d3dea31a05ee9469a30b Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Wed, 2 Jun 2021 13:46:33 -0400 Subject: [PATCH] Return peerlist nodes as Multiaddr instances --- packages/ipfs-topology/src/ipfs-topology.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ipfs-topology/src/ipfs-topology.ts b/packages/ipfs-topology/src/ipfs-topology.ts index e29d6142f5..081c8c485a 100644 --- a/packages/ipfs-topology/src/ipfs-topology.ts +++ b/packages/ipfs-topology/src/ipfs-topology.ts @@ -105,7 +105,7 @@ export class IpfsTopology { } this.logger.imp(`Connecting to peers found in '${url}'`); const list = await fetchJson(url); - return list || []; + return list.map(peer => new Multiaddr(peer)) || []; } private async _forceBootstrapConnection(