webservices: Restrict connections to IPv4 for now.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hans Leidekker 2017-06-06 09:56:00 +02:00 committed by Alexandre Julliard
parent cb1882f72e
commit b458799863
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ HRESULT resolve_hostname( const WCHAR *host, USHORT port, struct sockaddr *addr,
if (GetAddrInfoW( host, service, NULL, &res )) return HRESULT_FROM_WIN32( WSAGetLastError() );
info = res;
while (info && info->ai_family != AF_INET && info->ai_family != AF_INET6) info = info->ai_next;
while (info && info->ai_family != AF_INET) info = info->ai_next;
if (info)
{
memcpy( addr, info->ai_addr, info->ai_addrlen );