From 83e0a6b1ea33da03bdcd7de136f493e40630ca7f Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 28 Oct 2025 16:28:18 -0400 Subject: [PATCH] refactor: SSL_Options, ignore client disconnect w/o close message --- src/lib/net/SecureSocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/net/SecureSocket.cpp b/src/lib/net/SecureSocket.cpp index 57c8dca13..74a73a75e 100644 --- a/src/lib/net/SecureSocket.cpp +++ b/src/lib/net/SecureSocket.cpp @@ -357,7 +357,10 @@ void SecureSocket::initContext(bool server) // Prevent the usage of of all version prior to TLSv1.2 as they are known to // be vulnerable - SSL_CTX_set_options(m_ssl->m_context, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1); + SSL_CTX_set_options( + m_ssl->m_context, + SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_IGNORE_UNEXPECTED_EOF + ); if (m_ssl->m_context == nullptr) { SslLogger::logError();