From 80f23d56e8aa19b966b3d2856434b2ca719624be Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 4 Nov 2013 16:19:43 -0200 Subject: [PATCH] change "values" to "data" in getData to differentiate from tracker values (which are not authenticated/signed) --- libtorrent/src/kademlia/dht_get.cpp | 2 +- libtorrent/src/kademlia/node.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libtorrent/src/kademlia/dht_get.cpp b/libtorrent/src/kademlia/dht_get.cpp index ca45a83c..307fa6bd 100644 --- a/libtorrent/src/kademlia/dht_get.cpp +++ b/libtorrent/src/kademlia/dht_get.cpp @@ -85,7 +85,7 @@ void dht_get_observer::reply(msg const& m) } // look for peers - lazy_entry const* n = r->dict_find_list("values"); + lazy_entry const* n = r->dict_find_list("data"); if (n) { #ifdef TORRENT_DHT_VERBOSE_LOGGING diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index 2b25527a..9a322108 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -1404,8 +1404,8 @@ void node_impl::incoming_request(msg const& m, entry& e) if (i != m_storage_table.end()) { hasData = true; - reply["values"] = entry::list_type(); - entry::list_type &values = reply["values"].list(); + reply["data"] = entry::list_type(); + entry::list_type &values = reply["data"].list(); dht_storage_list_t const& lsto = i->second; for (dht_storage_list_t::const_iterator j = lsto.begin()