Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f2bd6c28e6bddd75d56d580c28f45d2a8be065ab 1 parent 67a11bd
@TheBlueMatt authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/net.cpp
View
4 src/net.cpp
@@ -1554,7 +1554,7 @@ void ThreadOpenAddedConnections2(void* parg)
return;
}
- loop
+ for (unsigned int i = 0; true; i++)
{
list<string> lAddresses(0);
{
@@ -1594,7 +1594,7 @@ void ThreadOpenAddedConnections2(void* parg)
BOOST_FOREACH(vector<CService>& vserv, lservAddressesToAdd)
{
CSemaphoreGrant grant(*semOutbound);
- OpenNetworkConnection(CAddress(*(vserv.begin())), &grant);
+ OpenNetworkConnection(CAddress(vserv[i % vserv.size()]), &grant);
Sleep(500);
if (fShutdown)
return;
Please sign in to comment.
Something went wrong with that request. Please try again.