diff --git a/src/kademlia/node.cpp b/src/kademlia/node.cpp index 904523753..63a8ac84b 100644 --- a/src/kademlia/node.cpp +++ b/src/kademlia/node.cpp @@ -408,7 +408,7 @@ void node_impl::on_announce(msg const& m, msg& reply) torrent_entry& v = m_map[m.info_hash]; peer_entry e; - e.addr = tcp::endpoint(m.addr.address(), m.addr.port()); + e.addr = tcp::endpoint(m.addr.address(), m.port); e.added = time_now(); std::set::iterator i = v.peers.find(e); if (i != v.peers.end()) v.peers.erase(i++);