forked from premiere/premiere-libtorrent
fixed kademlia announce bug
This commit is contained in:
parent
8b03e338d6
commit
0ba85e96d5
|
@ -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++);
|
||||
|
|
Loading…
Reference in New Issue