Explorar o código

Explicitily unsed AI_NUMERICHOST flag to fix HTML5

Fabio Alessandrelli %!s(int64=8) %!d(string=hai) anos
pai
achega
f863c0ca14
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/unix/ip_unix.cpp

+ 1 - 0
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) {