14 lines
533 B
Diff
14 lines
533 B
Diff
diff --git a/src/base/TcpSocketHandler.cpp b/src/base/TcpSocketHandler.cpp
|
|
index e94f1a2..f1f7b3b 100644
|
|
--- a/src/base/TcpSocketHandler.cpp
|
|
+++ b/src/base/TcpSocketHandler.cpp
|
|
@@ -14,6 +14,8 @@ int TcpSocketHandler::connect(const SocketEndpoint &endpoint) {
|
|
hints.ai_socktype = SOCK_STREAM;
|
|
#if __NetBSD__
|
|
hints.ai_flags = (AI_CANONNAME | AI_ADDRCONFIG);
|
|
+#elif defined(__ANDROID__)
|
|
+ hints.ai_flags = (AI_CANONNAME | AI_ADDRCONFIG);
|
|
#else
|
|
hints.ai_flags = (AI_CANONNAME | AI_V4MAPPED | AI_ADDRCONFIG | AI_ALL);
|
|
#endif
|