From db626346351297789d2c14dbe0228e82d58842f3 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Tue, 1 Jul 2014 21:44:43 -0300 Subject: [PATCH] return the peer list received from the tracker in dhtget --- libtorrent/src/kademlia/dht_get.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtorrent/src/kademlia/dht_get.cpp b/libtorrent/src/kademlia/dht_get.cpp index fd8cfca9..77892de5 100644 --- a/libtorrent/src/kademlia/dht_get.cpp +++ b/libtorrent/src/kademlia/dht_get.cpp @@ -137,8 +137,10 @@ void dht_get_observer::reply(msg const& m) entry::dictionary_type v; v["followers"] = followers; const lazy_entry *values = r->dict_find_list("values"); - if( values ) + if( values ) { v["values_size"] = values->list_size(); + v["values"] = *values; + } entry::dictionary_type target; target["n"] = dget->m_targetUser;