From f863c0ca14111d4bab06604fb4e2bf42fc83f0da Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 11 Aug 2017 19:12:39 +0200 Subject: [PATCH] Explicitily unsed AI_NUMERICHOST flag to fix HTML5 --- drivers/unix/ip_unix.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp index 30d2377a040..f55b75c1d90 100644 --- a/drivers/unix/ip_unix.cpp +++ b/drivers/unix/ip_unix.cpp @@ -100,6 +100,7 @@ IP_Address IP_Unix::_resolve_hostname(const String &p_hostname, Type p_type) { hints.ai_family = AF_UNSPEC; hints.ai_flags = AI_ADDRCONFIG; }; + hints.ai_flags &= !AI_NUMERICHOST; int s = getaddrinfo(p_hostname.utf8().get_data(), NULL, &hints, &result); if (s != 0) {