Added some ifdef HAVE_LIBSSL constraints

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@460 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-06 22:41:11 +00:00
parent e8fc75eb5a
commit 00fd113a19

View File

@@ -92,8 +92,12 @@ public:
CString sPort = sArgs.Token(0);
if (sPort.Left(1) == "+") {
#ifdef HAVE_LIBSSL
sPort.TrimLeft("+");
bSSL = true;
#else
return false;
#endif
}
m_uPort = sPort.ToUInt();
@@ -106,9 +110,11 @@ public:
CAdminSock* pListenSock = new CAdminSock(this);
#ifdef HAVE_LIBSSL
if (bSSL) {
pListenSock->SetPemLocation(m_pZNC->GetPemLocation());
}
#endif
return m_pManager->ListenAll(m_uPort, "Admin::Listener", bSSL, SOMAXCONN, pListenSock);
}