From 1d31dc3613268f48bf6af2fb06b10bede6181dd4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 23 Mar 2008 05:10:47 +0000 Subject: [PATCH] fixed dht announce bug --- src/kademlia/dht_tracker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index d18fc1e7c..4336823b6 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -932,12 +932,12 @@ namespace libtorrent { namespace dht break; } case messages::announce_peer: - a["port"] = m_settings.service_port; + a["port"] = m.port; a["info_hash"] = std::string(m.info_hash.begin(), m.info_hash.end()); a["token"] = m.write_token; #ifdef TORRENT_DHT_VERBOSE_LOGGING - TORRENT_LOG(dht_tracker) << " port: " - << m_settings.service_port + TORRENT_LOG(dht_tracker) + << " port: " << m.port << " info_hash: " << boost::lexical_cast(m.info_hash); #endif break;