mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
ITS#8754 Don't try IPv6 addresses unless configured to
This commit is contained in:
parent
2cac3ceb03
commit
5e8aa3f6d1
1 changed files with 3 additions and 0 deletions
|
|
@ -611,6 +611,9 @@ ldap_connect_to_host(LDAP *ld, Sockbuf *sb,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef LDAP_PF_INET6
|
||||||
|
if ( sai->ai_family == AF_INET6 ) continue;
|
||||||
|
#endif
|
||||||
/* we assume AF_x and PF_x are equal for all x */
|
/* we assume AF_x and PF_x are equal for all x */
|
||||||
s = ldap_int_socket( ld, sai->ai_family, socktype );
|
s = ldap_int_socket( ld, sai->ai_family, socktype );
|
||||||
if ( s == AC_SOCKET_INVALID ) {
|
if ( s == AC_SOCKET_INVALID ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue