diff options
| author | Fabio Alessandrelli | 2016-11-30 03:01:40 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-01-04 00:46:32 +0100 |
| commit | 4635671de5daf5e6b9f58372e0580ec5e19fd023 (patch) | |
| tree | c5549f9edd169d500b05c1735967f1db2100e451 /drivers/unix/ip_unix.cpp | |
| parent | 1a7f14b2067c5112b04d983af622d2f10b549ce3 (diff) | |
| download | godot-4635671de5daf5e6b9f58372e0580ec5e19fd023.tar.gz godot-4635671de5daf5e6b9f58372e0580ec5e19fd023.tar.zst godot-4635671de5daf5e6b9f58372e0580ec5e19fd023.zip | |
Diffstat (limited to 'drivers/unix/ip_unix.cpp')
| -rw-r--r-- | drivers/unix/ip_unix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp index e3d32618e..f74e577f9 100644 --- a/drivers/unix/ip_unix.cpp +++ b/drivers/unix/ip_unix.cpp @@ -100,7 +100,12 @@ IP_Address IP_Unix::_resolve_hostname(const String& p_hostname, IP_Address::Addr hints.ai_flags = 0; } else { hints.ai_family = AF_UNSPEC; +#ifdef ANDROID_ENABLED + // AI_V4MAPPED is not supported by android getaadrinfo + 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); |
