This commit is contained in:
ldcsaa 2021-05-16 16:01:41 +08:00
parent ef6b9b8b95
commit 2d202e4e19

View File

@ -177,7 +177,7 @@ BOOL GetSockAddrByHostNameDirectly(LPCTSTR lpszHost, USHORT usPort, HP_SOCKADDR&
addrinfo hints = {0};
#if defined(__ANDROID__)
hints.ai_flags = AI_DEFAULT;
hints.ai_flags = 0;
#else
hints.ai_flags = (AI_V4MAPPED | AI_ADDRCONFIG);
#endif