prevent asking our own tracker in dht (untested)

This commit is contained in:
Miguel Freitas 2013-10-12 17:26:06 -03:00
parent eab70b0466
commit e80acded1f

View File

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