diff options
author | Matt Corallo <matt@bluematt.me> | 2012-07-02 21:11:57 +0200 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2013-01-27 03:03:04 -0500 |
commit | f2bd6c28e6bddd75d56d580c28f45d2a8be065ab (patch) | |
tree | a08bdae9be5e7dceba103d38e016132d073ac278 /src/net.cpp | |
parent | 67a11bd6c5c28edc5f24574595380c1ddf8becf4 (diff) |
Try more than the first address for a DNS -addnode.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 4a32859dc6..f89d2899fe 100644 --- a/src/net.cpp +++ b/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; |