mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Pulled in ipv6 bug fixes
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@637 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+9
-3
@@ -69,10 +69,13 @@ int GetHostByName6( const CS_STRING & sHostName, in6_addr * paddr, u_int iNumRet
|
||||
iReturn = HOST_NOT_FOUND;
|
||||
#else
|
||||
hent = gethostbyname2( sHostName.c_str(), AF_INET6 );
|
||||
PERROR( "gethostbyname" );
|
||||
|
||||
if ( hent )
|
||||
iReturn = 0;
|
||||
else
|
||||
{
|
||||
PERROR( "gethostbyname2" );
|
||||
}
|
||||
|
||||
#endif /* __linux__ */
|
||||
|
||||
@@ -110,10 +113,13 @@ int GetHostByName( const CS_STRING & sHostName, in_addr * paddr, u_int iNumRetri
|
||||
iReturn = HOST_NOT_FOUND;
|
||||
#else
|
||||
hent = gethostbyname( sHostName.c_str() );
|
||||
PERROR( "gethostbyname" );
|
||||
|
||||
if ( hent )
|
||||
iReturn = 0;
|
||||
else
|
||||
{
|
||||
PERROR( "gethostbyname" );
|
||||
}
|
||||
|
||||
#endif /* __linux__ */
|
||||
|
||||
@@ -1862,7 +1868,7 @@ int Csock::DNSLookup( EDNSLType eDNSLType )
|
||||
#ifdef HAVE_IPV6
|
||||
else
|
||||
{
|
||||
iRet = GetHostByName6( m_shostname, m_bindhost.GetAddr6(), 1 );
|
||||
iRet = GetHostByName6( m_shostname, m_address.GetAddr6(), 1 );
|
||||
}
|
||||
#endif /* HAVE_IPV6 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user