Enable SSL by default in znc --makeconf when connecting to servers (#2022)

* Enable SSL by default in ZNC configuration when connecting to servers

* Change default port from 6667 to 6697 in znctest

* Update SSL variable initialization with preprocessor checks

Refactor SSL configuration to use preprocessor directives.

* Fix comment formatting in znc.cpp

Fix extraneous double tab that slipped into the commit
This commit is contained in:
TehPeGaSuS
2026-06-09 09:21:01 +02:00
committed by GitHub
parent 042d827e4a
commit d4f5d5f9e8
+5 -4
View File
@@ -791,14 +791,15 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
}
CString sHost, sPass, sHint;
bool bSSL = false;
#ifdef HAVE_LIBSSL
bool bSSL = true;
#else
bool bSSL = false;
#endif
unsigned int uServerPort = 0;
if (sNetwork.Equals("libera")) {
sHost = "irc.libera.chat";
#ifdef HAVE_LIBSSL
bSSL = true;
#endif
} else {
sHint = "host only";
}