Skip to content
Snippets Groups Projects
Commit d1d0a67d authored by Adrien Béraud's avatar Adrien Béraud
Browse files

dht: fix public address sorting

parent 85a9dbaf
Branches
Tags
No related merge requests found
......@@ -566,7 +566,7 @@ std::vector<Address>
Dht::getPublicAddress(sa_family_t family)
{
std::sort(reported_addr.begin(), reported_addr.end(), [](const ReportedAddr& a, const ReportedAddr& b) {
return a.first < b.first;
return a.first > b.first;
});
std::vector<Address> ret;
for (const auto& addr : reported_addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment