mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2026-09-19 06:13:40 +00:00
Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user