getaddrinfo works on Windows

This commit is contained in:
SVN User
2008-07-17 23:17:58 +00:00
parent cfcdeac742
commit 0b6ae6ed13
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1 +1 @@
#define BUILD_NUM -1
#define BUILD_NUM 376
+10
View File
@@ -1,5 +1,15 @@
2008-07-17 Vadim Kurland <vadim@vk.crocodile.org>
* utils.cpp (getAddrByName): getAddrByName() works on all
platforms and gets ipv4 and ipv6 addresses as requested. It looks
like for it to work on Windows Vista machine needs to be
configured with routable ipv6 addresses. When machine only had
Link-local address on fe80:: net, even when ipv6 was enabled,
getaddrinfo sent proper dns request for AAAA record, got reply but
did not pass it back to the application. Once machine was
configured with routable ipv6 address, getaddrinfo started working
as expected. This problem was not observed on Linux and Mac OS X.
* IPv6Dialog.cpp (IPv6Dialog::DNSlookup): Added "DNS Looup" button
to the IPv6 object dialog.
-10
View File
@@ -415,17 +415,7 @@ QString getAddrByName(const QString &name, int af_type)
try
{
if (results.size()>0)
{
list<InetAddr>::iterator i;
for (i=results.begin(); i!=results.end(); ++i)
{
qDebug("Result: af_type=%d result->isV6()=%d result->addr=%s",
af_type,
i->isV6(),
i->toString().c_str());
}
return QString(results.front().toString().c_str());
}
} catch (FWException &e)
{
qDebug("utils::getAddrByName: Can not convert address to string");