Prechádzať zdrojové kódy

Revert "Do not perform a lookup for IPv4 addresses, if only listening on IPv6 sockets."
Can be done by configuration.

This reverts commit e1b3961b16b76b02ae7ad5f52b2e9db126f81ff9.

Carsten Bock 13 rokov pred
rodič
commit
2d6a8e0ae7
1 zmenil súbory, kde vykonal 2 pridanie a 4 odobranie
  1. 2 4
      resolve.h

+ 2 - 4
resolve.h

@@ -429,10 +429,8 @@ static inline struct hostent* _resolvehost(char* name)
 	}
 	}
 #endif
 #endif
 #endif
 #endif
-	if (socket_types & SOCKET_T_IPV4) {
-		/* ipv4 */
-		he=gethostbyname(name);
-	}
+	/* ipv4 */
+	he=gethostbyname(name);
 #ifdef USE_IPV6
 #ifdef USE_IPV6
 	if(he==0 && cfg_get(core, core_cfg, dns_try_ipv6)){
 	if(he==0 && cfg_get(core, core_cfg, dns_try_ipv6)){
 #ifndef DNS_IP_HACK
 #ifndef DNS_IP_HACK