mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fixed pem file auto creation prompting
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@205 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
11
znc.cpp
11
znc.cpp
@@ -508,7 +508,7 @@ bool CZNC::ParseConfig(const string& sConfigFile) {
|
||||
if ((m_bSSL) && (!CFile::Exists(sPemFile))) {
|
||||
CUtils::PrintStatus(false, "Unable to locate pem file: [" + sPemFile + "]");
|
||||
|
||||
if (CUtils::GetBoolInput("Would you like to create a new pem file")) {
|
||||
if (CUtils::GetBoolInput("Would you like to create a new pem file", true)) {
|
||||
CUtils::PrintAction("Writing Pem file [" + sPemFile + "]");
|
||||
|
||||
if (CFile::Exists(sPemFile)) {
|
||||
@@ -531,11 +531,16 @@ bool CZNC::ParseConfig(const string& sConfigFile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CUtils::PrintAction("Resuming");
|
||||
CUtils::PrintAction("Binding to port [" + string((m_bSSL) ? "+" : "") + CUtils::ToString(m_uListenPort) + "]");
|
||||
}
|
||||
#endif
|
||||
if (!m_uListenPort) {
|
||||
CUtils::PrintStatus(false, "Invalid port");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!Listen()) {
|
||||
CUtils::PrintStatus(false);
|
||||
CUtils::PrintStatus(false, "Unable to bind");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user