We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9731101 commit 87c1898Copy full SHA for 87c1898
src/CoreApi/SwarmApi.cs
@@ -51,7 +51,7 @@ internal SwarmApi(IpfsClient ipfs)
51
var address = new MultiAddress(parts[0]);
52
return new Peer
53
{
54
- Id = address.Protocols.First(p => p.Name == "ipfs").Value,
+ Id = address.PeerId,
55
ConnectedAddress = parts[0],
56
Latency = Duration.Parse(parts[1])
57
};
0 commit comments