mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Add a new config option SslPemFile
This option defines an alternate part for <datadir>/znc.pem. Thanks to evaryont for the idea and the patch. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2086 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -458,6 +458,8 @@ void CZNC::InitDirs(const CString& sArgvPath, const CString& sDataDir) {
|
||||
} else {
|
||||
m_sZNCPath = sDataDir;
|
||||
}
|
||||
|
||||
m_sPemFile = m_sZNCPath + "/znc.pem";
|
||||
}
|
||||
|
||||
CString CZNC::GetConfPath(bool bAllowMkDir) const {
|
||||
@@ -533,6 +535,7 @@ bool CZNC::WriteConfig() {
|
||||
|
||||
m_LockFile.Write("AnonIPLimit = " + CString(m_uiAnonIPLimit) + "\n");
|
||||
m_LockFile.Write("MaxBufferSize= " + CString(m_uiMaxBufferSize) + "\n");
|
||||
m_LockFile.Write("SslPemFile = " + CString(m_sPemFile) + "\n");
|
||||
|
||||
for (size_t l = 0; l < m_vpListeners.size(); l++) {
|
||||
CListener* pListener = m_vpListeners[l];
|
||||
@@ -1610,6 +1613,9 @@ bool CZNC::DoRehash(CString& sError)
|
||||
} else if (sName.Equals("MaxBufferSize")) {
|
||||
m_uiMaxBufferSize = sValue.ToUInt();
|
||||
continue;
|
||||
} else if (sName.Equals("SslPemFile")) {
|
||||
m_sPemFile = sValue;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user