Browse Source

return the peer list received from the tracker in dhtget

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
db62634635
  1. 4
      libtorrent/src/kademlia/dht_get.cpp

4
libtorrent/src/kademlia/dht_get.cpp

@ -137,8 +137,10 @@ void dht_get_observer::reply(msg const& m)
entry::dictionary_type v; entry::dictionary_type v;
v["followers"] = followers; v["followers"] = followers;
const lazy_entry *values = r->dict_find_list("values"); const lazy_entry *values = r->dict_find_list("values");
if( values ) if( values ) {
v["values_size"] = values->list_size(); v["values_size"] = values->list_size();
v["values"] = *values;
}
entry::dictionary_type target; entry::dictionary_type target;
target["n"] = dget->m_targetUser; target["n"] = dget->m_targetUser;

Loading…
Cancel
Save