зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1205421 - fix DNS resolution of STUN server in ice_unittest. r=bwc
--HG-- extra : transplant_source : %CA%C8M%F6%8DrK%8D%113%C9%D512C%96%06%B8%86o
This commit is contained in:
Родитель
930f7b97f3
Коммит
8e7eb5231c
|
@ -3080,12 +3080,14 @@ Resolve(const std::string& fqdn, int address_family)
|
|||
&reinterpret_cast<struct sockaddr_in*>(res->ai_addr)->sin_addr,
|
||||
str_addr,
|
||||
sizeof(str_addr));
|
||||
break;
|
||||
case AF_INET6:
|
||||
inet_ntop(
|
||||
AF_INET6,
|
||||
&reinterpret_cast<struct sockaddr_in6*>(res->ai_addr)->sin6_addr,
|
||||
str_addr,
|
||||
sizeof(str_addr));
|
||||
break;
|
||||
default:
|
||||
std::cerr << "Got unexpected address family in DNS lookup: "
|
||||
<< res->ai_family << std::endl;
|
||||
|
|
Загрузка…
Ссылка в новой задаче