Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family

This commit is contained in:
Dominick Meglio
2005-04-08 15:41:31 +00:00
parent 2a0239bab1
commit 29d71bd499
5 changed files with 105 additions and 30 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ static int file_lookup(const char *name, struct hostent **host)
if (!fp)
return ARES_ENOTFOUND;
while ((status = ares__get_hostent(fp, host)) == ARES_SUCCESS)
while ((status = ares__get_hostent(fp, AF_INET, host)) == ARES_SUCCESS)
{
if (strcasecmp((*host)->h_name, name) == 0)
break;