mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 06:22:30 +00:00
iterator through resolver's results
This commit is contained in:
1 parent
ffd18baf30
commit
cc768de8ea
3 files changed
+8
-12
No files matched your search
@@ -67,9 +67,9 @@ namespace util
|
||||
{
|
||||
bool found = false;
|
||||
boost::asio::ip::udp::endpoint ep;
|
||||
for (auto it = endpoints.begin (); it != endpoints.end ();)
|
||||
for (const auto& it: endpoints)
|
||||
{
|
||||
ep = *it;
|
||||
ep = it;
|
||||
if (!ep.address ().is_unspecified ())
|
||||
{
|
||||
if (ep.address ().is_v4 ())
|
||||
@@ -86,7 +86,6 @@ namespace util
|
||||
}
|
||||
}
|
||||
if (found) break;
|
||||
it++;
|
||||
}
|
||||
if (!found)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user