diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-23 13:32:02 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-23 13:32:02 +0100 |
commit | e3c4395ab75cc547465a5146292baf42852805b8 (patch) | |
tree | 9b76e519240e9250a6ea81f677149b4f30b34fd4 /src/p2p | |
parent | Merge pull request #2303 (diff) | |
download | monero-e3c4395ab75cc547465a5146292baf42852805b8.tar.xz |
p2p: init hashes after deserializing a network address
Fixes multiple connections to the same address
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/net_peerlist_boost_serialization.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_peerlist_boost_serialization.h b/src/p2p/net_peerlist_boost_serialization.h index 43c5ea5f0..6ea2d48fd 100644 --- a/src/p2p/net_peerlist_boost_serialization.h +++ b/src/p2p/net_peerlist_boost_serialization.h @@ -59,6 +59,8 @@ namespace boost { a & na.m_ip; a & na.m_port; + if (!typename Archive::is_saving()) + na.init_ids(); } |