mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Use AF_INET instead of AF_UNSPEC when IPv6 disabled
This commit is contained in:
parent
a6730db3e9
commit
bf5e3a15ca
2 changed files with 8 additions and 0 deletions
|
|
@ -31,7 +31,11 @@
|
|||
int ldap_int_tblsize = 0;
|
||||
|
||||
#if defined( HAVE_GETADDRINFO ) && defined( HAVE_INET_NTOP )
|
||||
# ifdef LDAP_PF_INET6
|
||||
int ldap_int_inet4or6 = AF_UNSPEC;
|
||||
# else
|
||||
int ldap_int_inet4or6 = AF_INET;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -33,7 +33,11 @@ int deny_severity = LOG_NOTICE;
|
|||
#define LDAPI_MOD_URLEXT "x-mod"
|
||||
#endif /* LDAP_PF_LOCAL */
|
||||
|
||||
#ifdef LDAP_PF_INET6
|
||||
int slap_inet4or6 = AF_UNSPEC;
|
||||
#else
|
||||
int slap_inet4or6 = AF_INET;
|
||||
#endif
|
||||
|
||||
/* globals */
|
||||
time_t starttime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue