Skip to content

Commit

Permalink
fix(Dht1): DhtPeerMessage.Addresses does not contain the Peer ID. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Sep 19, 2019
1 parent 89dfd94 commit 332c73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Dht1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public DhtMessage ProcessGetProviders(DhtMessage request, DhtMessage response)
return new DhtPeerMessage
{
Id = peer.Id.ToArray(),
Addresses = peer.Addresses.Select(a => a.ToArray()).ToArray()
Addresses = peer.Addresses.Select(a => a.WithoutPeerId().ToArray()).ToArray()
};
})
.Take(20)
Expand Down

0 comments on commit 332c73c

Please sign in to comment.