Skip to content

Commit

Permalink
Return peerlist nodes as Multiaddr instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer T Brody committed Jun 2, 2021
1 parent 9f360ce commit c0f4c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ipfs-topology/src/ipfs-topology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c0f4c6c

Please sign in to comment.