introduce new, optional, get_peers mechanism that is more privacy preserving (doesn't leak the info-hash to as many DHT nodes)

This commit is contained in:
Arvid Norberg
2013-09-09 07:08:02 +00:00
parent b94f3d8b9a
commit 39264c5ad3
9 changed files with 160 additions and 13 deletions

View File

@@ -1541,6 +1541,10 @@ int main(int argc, char* argv[])
}
#ifndef TORRENT_DISABLE_DHT
dht_settings dht;
dht.privacy_lookups = true;
ses.set_dht_settings(dht);
if (start_dht)
{
settings.use_dht_as_fallback = false;