forked from premiere/premiere-libtorrent
move dht_flood.py into tools. only reveal 3 bits passed the shared target prefix when doing obfuscated dht lookups
This commit is contained in:
parent
8fe1dc5754
commit
17d276e060
|
@ -300,7 +300,7 @@ bool obfuscated_get_peers::invoke(observer_ptr o)
|
||||||
|
|
||||||
// now, obfuscate the bits past shared_prefix + 5
|
// now, obfuscate the bits past shared_prefix + 5
|
||||||
node_id obfuscated_target = generate_random_id();
|
node_id obfuscated_target = generate_random_id();
|
||||||
obfuscated_target >>= shared_prefix + 6;
|
obfuscated_target >>= shared_prefix + 3;
|
||||||
obfuscated_target^= m_target;
|
obfuscated_target^= m_target;
|
||||||
a["target"] = obfuscated_target.to_string();
|
a["target"] = obfuscated_target.to_string();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue