mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
No longer need ipv6 for outgoing connections
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@655 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -156,19 +156,14 @@ int CZNC::Loop() {
|
||||
pIRCSock->SetPass(pServer->GetPass());
|
||||
|
||||
bool bSSL = false;
|
||||
bool bIPV6 = false;
|
||||
#ifdef HAVE_LIBSSL
|
||||
if (pServer->IsSSL()) {
|
||||
bSSL = true;
|
||||
pIRCSock->SetPemLocation(GetPemLocation());
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_IPV6
|
||||
if (pServer->IsIPV6()) {
|
||||
bIPV6 = true;
|
||||
}
|
||||
#endif
|
||||
if (!m_Manager.Connect(pServer->GetName(), pServer->GetPort(), sSockName, 20, bSSL, pUser->GetVHost(), pIRCSock, bIPV6)) {
|
||||
|
||||
if (!m_Manager.Connect(pServer->GetName(), pServer->GetPort(), sSockName, 20, bSSL, pUser->GetVHost(), pIRCSock)) {
|
||||
ReleaseISpoof();
|
||||
pUser->PutStatus("Unable to connect. (Bad host?)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user