NetworkInterface fixes/improvement

This commit is contained in:
Aleksandar Fabijanic
2012-08-14 00:34:38 +00:00
parent e8931a928c
commit 676675edc7
5 changed files with 155 additions and 127 deletions

View File

@@ -111,7 +111,7 @@ Poco::Net::NetworkInterface MulticastEchoServer::findInterface()
for (NetworkInterface::Map::const_iterator it = m.begin(); it != m.end(); ++it)
{
if (it->second.supportsIPv4() &&
it->second.findFirstAddress(IPAddress::IPv4).isUnicast() &&
it->second.firstAddress(IPAddress::IPv4).isUnicast() &&
!it->second.isLoopback() &&
!it->second.isPointToPoint())
{