Browse Source

Try more than the first address for a DNS -addnode.

0.8
Matt Corallo 13 years ago committed by Matt Corallo
parent
commit
f2bd6c28e6
  1. 4
      src/net.cpp

4
src/net.cpp

@ -1554,7 +1554,7 @@ void ThreadOpenAddedConnections2(void* parg)
return; return;
} }
loop for (unsigned int i = 0; true; i++)
{ {
list<string> lAddresses(0); list<string> lAddresses(0);
{ {
@ -1594,7 +1594,7 @@ void ThreadOpenAddedConnections2(void* parg)
BOOST_FOREACH(vector<CService>& vserv, lservAddressesToAdd) BOOST_FOREACH(vector<CService>& vserv, lservAddressesToAdd)
{ {
CSemaphoreGrant grant(*semOutbound); CSemaphoreGrant grant(*semOutbound);
OpenNetworkConnection(CAddress(*(vserv.begin())), &grant); OpenNetworkConnection(CAddress(vserv[i % vserv.size()]), &grant);
Sleep(500); Sleep(500);
if (fShutdown) if (fShutdown)
return; return;

Loading…
Cancel
Save