Browse Source

prevent asking our own tracker in dht (untested)

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

4
libtorrent/src/kademlia/find_data.cpp

@ -206,6 +206,10 @@ bool find_data::invoke(observer_ptr o)
return false; return false;
} }
// im not going to ask trackers from myself
if( o->id() == m_node.nid() )
return true;
entry e; entry e;
e["z"] = "q"; e["z"] = "q";
e["q"] = "getData"; // "getPeers" e["q"] = "getData"; // "getPeers"

Loading…
Cancel
Save