From d4f5d5f9e8bc21f80f0f6610caeaf81eb530587e Mon Sep 17 00:00:00 2001 From: TehPeGaSuS <25697531+TehPeGaSuS@users.noreply.github.com> Date: Tue, 9 Jun 2026 09:21:01 +0200 Subject: [PATCH] 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 --- src/znc.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/znc.cpp b/src/znc.cpp index 2e347a60..0b3265b9 100644 --- a/src/znc.cpp +++ b/src/znc.cpp @@ -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"; }