mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
+5
-4
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user