diff --git a/src/init.cpp b/src/init.cpp index ce9b97ce..fbf51a5e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -202,6 +202,7 @@ std::string HelpMessage() strUsage += " -seednode= " + _("Connect to a node to retrieve peer addresses, and disconnect") + "\n"; strUsage += " -externalip= " + _("Specify your own public address") + "\n"; strUsage += " -onlynet= " + _("Only connect to nodes in network (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"; diff --git a/src/twister.cpp b/src/twister.cpp index 2969abbf..db1f9daa 100644 --- a/src/twister.cpp +++ b/src/twister.cpp @@ -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