mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user