mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -295,11 +295,11 @@ void SocketAddress::init(Family fam, const std::string& hostAddress, Poco::UInt1
|
||||
HostEntry::AddressList addresses = he.addresses();
|
||||
if (addresses.size() > 0)
|
||||
{
|
||||
for (HostEntry::AddressList::const_iterator it = addresses.begin(); it != addresses.end(); ++it)
|
||||
for (const auto& addr: addresses)
|
||||
{
|
||||
if (it->family() == fam)
|
||||
if (addr.family() == fam)
|
||||
{
|
||||
init(*it, portNumber);
|
||||
init(addr, portNumber);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user