disable libtorrent multi connection per ip by default

This commit is contained in:
Miguel Freitas 2015-12-20 18:41:29 -02:00
parent 11bbbd36e2
commit 7d31de981c
2 changed files with 2 additions and 1 deletions

View File

@ -202,6 +202,7 @@ std::string HelpMessage()
strUsage += " -seednode=<ip> " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n";
strUsage += " -externalip=<ip> " + _("Specify your own public address") + "\n";
strUsage += " -onlynet=<net> " + _("Only connect to nodes in network <net> (IPv4, IPv6 or Tor)") + "\n";
strUsage += " -multiconnperip " + _("Enable libtorrent multiple connections per ip (default: 0)") + "\n";
strUsage += " -discover " + _("Discover own IP address (default: 1 when listening and no -externalip)") + "\n";
strUsage += " -checkpoints " + _("Only accept block chain matching built-in checkpoints (default: 1)") + "\n";
strUsage += " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n";

View File

@ -393,7 +393,7 @@ void ThreadWaitExtIP()
session_settings settings("twisterd/"+FormatFullVersion());
// settings to test local connections
settings.allow_multiple_connections_per_ip = true;
settings.allow_multiple_connections_per_ip = GetBoolArg("-multiconnperip", false);
//settings.enable_outgoing_utp = false; // (false to see connections in netstat)
//settings.dht_announce_interval = 60; // test
//settings.min_announce_interval = 60; // test