From 0ba85e96d55d9e4d0c3afef0104874f3f4f52583 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 26 May 2008 15:23:06 +0000 Subject: [PATCH] fixed kademlia announce bug --- src/kademlia/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++);