[net] Use ConnectedThroughNetwork() instead of GetNetwork() to seed addr cache randomizer

This commit is contained in:
dergoegge committed 2022-05-09 16:18:22 +02:00
1 parent dab18f03f7
commit f10e80b6e4
1 file changed
+1 -1
+1 -1
View File
@@ -2799,7 +2799,7 @@ std::vector<CAddress> CConnman::GetAddresses(CNode& requestor, size_t max_addres
{
auto local_socket_bytes = requestor.addrBind.GetAddrBytes();
uint64_t cache_id = GetDeterministicRandomizer(RANDOMIZER_ID_ADDRCACHE)
.Write(requestor.addr.GetNetwork())
.Write(requestor.ConnectedThroughNetwork())
.Write(local_socket_bytes.data(), local_socket_bytes.size())
.Finalize();
const auto current_time = GetTime<std::chrono::microseconds>();