fixed kademlia announce bug

This commit is contained in:
Arvid Norberg 2008-05-26 15:23:06 +00:00
parent 8b03e338d6
commit 0ba85e96d5
1 changed files with 1 additions and 1 deletions

View File

@ -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<peer_entry>::iterator i = v.peers.find(e);
if (i != v.peers.end()) v.peers.erase(i++);