From 967cf857a31171d30fc521c83ab736a88dd03b29 Mon Sep 17 00:00:00 2001 From: prozacx Date: Thu, 8 Sep 2005 18:48:11 +0000 Subject: [PATCH] In WriteConfig() - add + to port when listening in ssl - Thanks to Kuja for finding this bug git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@475 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/znc.cpp b/znc.cpp index d4383709..aad83ff0 100644 --- a/znc.cpp +++ b/znc.cpp @@ -315,7 +315,7 @@ bool CZNC::WriteConfig() { return false; } - File.Write("ListenPort = " + CString::ToString(m_uListenPort) + "\r\n"); + File.Write("ListenPort = " + CString((m_bSSL) ? "+" : "") + CString::ToString(m_uListenPort) + "\r\n"); if (!m_sISpoofFile.empty()) { File.Write("ISpoofFile = " + m_sISpoofFile + "\r\n"); if (!m_sISpoofFormat.empty()) { File.Write("ISpoofFormat = " + m_sISpoofFormat + "\r\n"); }