refactor: SSL_Options, ignore client disconnect w/o close message

This commit is contained in:
sithlord48
2025-10-28 16:28:18 -04:00
committed by Chris Rizzitello
parent 495a5e6479
commit 83e0a6b1ea

View File

@ -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();