* B_NO_ADDRESS_RESOLUTION now implies not setting AI_ADDRCONFIG, as that flag

doesn't really make sense in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-08-12 13:29:44 +00:00
parent 31a49a69c7
commit b85c513ee7
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,10 @@ BNetworkAddressResolver::SetTo(int family, const char* host,
addrinfo hint = {0};
hint.ai_family = family;
if ((flags & B_UNCONFIGURED_ADDRESS_FAMILIES) == 0)
hint.ai_flags |= AI_ADDRCONFIG;
if ((flags & B_NO_ADDRESS_RESOLUTION) != 0)
hint.ai_flags |= AI_NUMERICHOST;
else if ((flags & B_UNCONFIGURED_ADDRESS_FAMILIES) == 0)
hint.ai_flags |= AI_ADDRCONFIG;
if (host == NULL && portString.Length() == 0) {
portString = "0";