change "values" to "data" in getData to differentiate from tracker values (which are not authenticated/signed)

This commit is contained in:
Miguel Freitas 2013-11-04 16:19:43 -02:00
parent 5a9613297a
commit 80f23d56e8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()