mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Try more than the first address for a DNS -addnode.
This commit is contained in:
parent
67a11bd6c5
commit
f2bd6c28e6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue