mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
prevent asking our own tracker in dht (untested)
This commit is contained in:
parent
eab70b0466
commit
e80acded1f
@ -206,6 +206,10 @@ bool find_data::invoke(observer_ptr o)
|
||||
return false;
|
||||
}
|
||||
|
||||
// im not going to ask trackers from myself
|
||||
if( o->id() == m_node.nid() )
|
||||
return true;
|
||||
|
||||
entry e;
|
||||
e["z"] = "q";
|
||||
e["q"] = "getData"; // "getPeers"
|
||||
|
Loading…
x
Reference in New Issue
Block a user