Explorar o código

remove pointless use of AI_V4MAPPED flag

this flag is ineffective if ai_family is not explicitly AF_INET6.
on top of that, attempting to use it breaks on FreeBSD.
Oswald Buddenhagen %!s(int64=11) %!d(string=hai) anos
pai
achega
12be7dd1f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/socket.c

+ 1 - 1
src/socket.c

@@ -349,7 +349,7 @@ socket_connect( conn_t *sock, void (*cb)( int ok, void *aux ) )
 		memset( &hints, 0, sizeof(hints) );
 		hints.ai_family = AF_UNSPEC;
 		hints.ai_socktype = SOCK_STREAM;
-		hints.ai_flags = AI_V4MAPPED | AI_ADDRCONFIG;
+		hints.ai_flags = AI_ADDRCONFIG;
 		infon( "Resolving %s... ", conf->host );
 		if ((gaierr = getaddrinfo( conf->host, NULL, &hints, &sock->addrs ))) {
 			error( "IMAP error: Cannot resolve server '%s': %s\n", conf->host, gai_strerror( gaierr ) );