|
@@ -19750,6 +19750,8 @@ LIST *GetHostIPAddressListInternal()
|
|
struct addrinfo hint;
|
|
struct addrinfo hint;
|
|
struct addrinfo *info;
|
|
struct addrinfo *info;
|
|
|
|
|
|
|
|
+// Debug("***** GetHostIPAddressListInternal IPv4 Begin *****\n");
|
|
|
|
+
|
|
Zero(&hint, sizeof(hint));
|
|
Zero(&hint, sizeof(hint));
|
|
hint.ai_family = AF_INET;
|
|
hint.ai_family = AF_INET;
|
|
hint.ai_socktype = SOCK_DGRAM;
|
|
hint.ai_socktype = SOCK_DGRAM;
|
|
@@ -19771,12 +19773,15 @@ LIST *GetHostIPAddressListInternal()
|
|
InAddrToIP(&ip, &addr);
|
|
InAddrToIP(&ip, &addr);
|
|
AddHostIPAddressToList(o, &ip);
|
|
AddHostIPAddressToList(o, &ip);
|
|
|
|
|
|
|
|
+// Debug("%r\n", &ip);
|
|
|
|
+
|
|
current = current->ai_next;
|
|
current = current->ai_next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
freeaddrinfo(info);
|
|
freeaddrinfo(info);
|
|
}
|
|
}
|
|
|
|
+// Debug("***** GetHostIPAddressListInternal IPv4 End *****\n");
|
|
}
|
|
}
|
|
|
|
|
|
#ifndef UNIX_LINUX
|
|
#ifndef UNIX_LINUX
|
|
@@ -19794,6 +19799,8 @@ LIST *GetHostIPAddressListInternal()
|
|
hint.ai_protocol = IPPROTO_UDP;
|
|
hint.ai_protocol = IPPROTO_UDP;
|
|
info = NULL;
|
|
info = NULL;
|
|
|
|
|
|
|
|
+// Debug("***** GetHostIPAddressListInternal IPv6 Begin *****\n");
|
|
|
|
+
|
|
if (getaddrinfo(hostname, NULL, &hint, &info) == 0)
|
|
if (getaddrinfo(hostname, NULL, &hint, &info) == 0)
|
|
{
|
|
{
|
|
if (info->ai_family == AF_INET6)
|
|
if (info->ai_family == AF_INET6)
|
|
@@ -19811,12 +19818,15 @@ LIST *GetHostIPAddressListInternal()
|
|
|
|
|
|
AddHostIPAddressToList(o, &ip);
|
|
AddHostIPAddressToList(o, &ip);
|
|
|
|
|
|
|
|
+// Debug("%r\n", &ip);
|
|
|
|
+
|
|
current = current->ai_next;
|
|
current = current->ai_next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
freeaddrinfo(info);
|
|
freeaddrinfo(info);
|
|
}
|
|
}
|
|
|
|
+// Debug("***** GetHostIPAddressListInternal IPv6 End *****\n");
|
|
}
|
|
}
|
|
#endif // UNIX_LINUX
|
|
#endif // UNIX_LINUX
|
|
#endif // MAYAQUA_SUPPORTS_GETIFADDRS
|
|
#endif // MAYAQUA_SUPPORTS_GETIFADDRS
|