p2p: init hashes after deserializing a network address

Fixes multiple connections to the same address
This commit is contained in:
moneromooo-monero 2017-08-23 13:32:02 +01:00
parent 373ce4ab09
commit 8133a64260
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ namespace boost
{ {
a & na.m_ip; a & na.m_ip;
a & na.m_port; a & na.m_port;
if (!typename Archive::is_saving())
na.init_ids();
} }