mirror of
https://github.com/znc/znc.git
synced 2026-05-08 14:24:45 +02:00
state bug, from previous fix broken vhost binding
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@995 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+6
-6
@@ -28,7 +28,7 @@
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*
|
||||
* $Revision: 1.70 $
|
||||
* $Revision: 1.73 $
|
||||
*/
|
||||
|
||||
#include "Csocket.h"
|
||||
@@ -2060,7 +2060,7 @@ int Csock::DNSLookup( EDNSLType eDNSLType )
|
||||
if ( m_sBindHost.empty() )
|
||||
{
|
||||
if ( m_eConState != CST_OK )
|
||||
m_eConState = CST_VHOSTDNS;
|
||||
m_eConState = CST_VHOSTDNS; // skip binding, there is no vhost
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
@@ -2115,7 +2115,7 @@ int Csock::DNSLookup( EDNSLType eDNSLType )
|
||||
}
|
||||
|
||||
if ( m_eConState != CST_OK )
|
||||
m_eConState = ( ( eDNSLType == DNS_VHOST ) ? CST_VHOSTDNS : CST_CONNECT );
|
||||
m_eConState = ( ( eDNSLType == DNS_VHOST ) ? CST_BINDVHOST : CST_CONNECT ); // next step after vhost is to bind
|
||||
|
||||
if( !CreateSocksFD() )
|
||||
return( ETIMEDOUT );
|
||||
@@ -2154,7 +2154,7 @@ int Csock::DNSLookup( EDNSLType eDNSLType )
|
||||
if ( iRet == 0 )
|
||||
{
|
||||
if ( m_eConState != CST_OK )
|
||||
m_eConState = ( ( eDNSLType == DNS_VHOST ) ? CST_VHOSTDNS : CST_CONNECT );
|
||||
m_eConState = ( ( eDNSLType == DNS_VHOST ) ? CST_BINDVHOST : CST_CONNECT );
|
||||
m_iDNSTryCount = 0;
|
||||
return( 0 );
|
||||
}
|
||||
@@ -2178,7 +2178,7 @@ bool Csock::SetupVHost()
|
||||
if ( m_sBindHost.empty() )
|
||||
{
|
||||
if ( m_eConState != CST_OK )
|
||||
m_eConState = CST_CONNECT;
|
||||
m_eConState = CST_VHOSTDNS;
|
||||
return( true );
|
||||
}
|
||||
int iRet = -1;
|
||||
@@ -2192,7 +2192,7 @@ bool Csock::SetupVHost()
|
||||
if ( iRet == 0 )
|
||||
{
|
||||
if ( m_eConState != CST_OK )
|
||||
m_eConState = CST_CONNECT;
|
||||
m_eConState = CST_VHOSTDNS;
|
||||
return( true );
|
||||
}
|
||||
m_iCurBindCount++;
|
||||
|
||||
Reference in New Issue
Block a user