back-port test port fix

This commit is contained in:
Arvid Norberg 2013-09-29 19:18:25 +00:00
parent cc4536b122
commit a623c4c41c
1 changed files with 3 additions and 2 deletions

View File

@ -385,14 +385,15 @@ int start_proxy(int proxy_type)
{
using namespace libtorrent;
static int port = 5000 + (rand() % 55000);
++port;
for (std::map<int, proxy_t>::iterator i = running_proxies.begin()
, end(running_proxies.end()); i != end; ++i)
{
if (i->second.type == proxy_type) return i->first;
}
int port = 10000 + (rand() % 50000);
char const* type = "";
char const* auth = "";
char const* cmd = "";