mirror of
https://gitee.com/ldcsaa/HP-Socket.git
synced 2024-11-29 18:28:14 +08:00
20210516
This commit is contained in:
parent
ef6b9b8b95
commit
2d202e4e19
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user