Remove old unused AI_V4MAPPED flag to getaddrinfo
(cherry picked from commit de23ce11b5
)
This commit is contained in:
parent
3bb1709fd7
commit
ac9f0aea1a
1 changed files with 0 additions and 8 deletions
|
@ -37,9 +37,6 @@
|
||||||
#ifndef AI_ADDRCONFIG
|
#ifndef AI_ADDRCONFIG
|
||||||
#define AI_ADDRCONFIG 0x00000400
|
#define AI_ADDRCONFIG 0x00000400
|
||||||
#endif
|
#endif
|
||||||
#ifndef AI_V4MAPPED
|
|
||||||
#define AI_V4MAPPED 0x00000800
|
|
||||||
#endif
|
|
||||||
#ifdef WINRT_ENABLED
|
#ifdef WINRT_ENABLED
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
@ -97,12 +94,7 @@ IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, Type p_type) {
|
||||||
hints.ai_flags = 0;
|
hints.ai_flags = 0;
|
||||||
} else {
|
} else {
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
#ifdef ANDROID_ENABLED
|
|
||||||
// AI_V4MAPPED is not supported by android getaadrinfo
|
|
||||||
hints.ai_flags = AI_ADDRCONFIG;
|
hints.ai_flags = AI_ADDRCONFIG;
|
||||||
#else
|
|
||||||
hints.ai_flags = (AI_V4MAPPED | AI_ADDRCONFIG);
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int s = getaddrinfo(p_hostname.utf8().get_data(), NULL, &hints, &result);
|
int s = getaddrinfo(p_hostname.utf8().get_data(), NULL, &hints, &result);
|
||||||
|
|
Loading…
Reference in a new issue