From a91f86d1c2d3718ceca48a6ad2762bc505c870e5 Mon Sep 17 00:00:00 2001 From: imaginos Date: Mon, 31 Mar 2008 04:53:21 +0000 Subject: [PATCH] commenting out this test for now git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@997 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Csocket.cpp b/Csocket.cpp index fdcd23b9..31e6f606 100644 --- a/Csocket.cpp +++ b/Csocket.cpp @@ -207,6 +207,10 @@ int GetAddrInfo( const CS_STRING & sHostname, Csock *pSock, CSSockAddr & csSockA if( ( csSockAddr.GetAFRequire() != CSSockAddr::RAF_ANY ) && ( pRes->ai_family != csSockAddr.GetAFRequire() ) ) continue; // they requested a special type, so be certain we woop past anything unwanted +/** + * I still don't like this approach, so commenting for now. the caveat is that for ipv6 to work properly on a host + * that resolves to both ipv4 & ipv6, you need to bind to an ip first. + * if( csSockAddr.GetAFRequire() == CSSockAddr::RAF_ANY ) { // this is a quick check to see if we can connect to this type of outside port (ipv6 or ipv4) @@ -222,6 +226,7 @@ int GetAddrInfo( const CS_STRING & sHostname, Csock *pSock, CSSockAddr & csSockA if( bContinue ) continue; } +*/ if( pRes->ai_family == AF_INET ) {