From f90807f28d98dc2e6e1b2a20635929eafb65e29a Mon Sep 17 00:00:00 2001 From: IronsDu Date: Sat, 6 Jun 2020 19:11:18 +0800 Subject: [PATCH] Update TcpConnection.hpp --- include/brynet/net/TcpConnection.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/brynet/net/TcpConnection.hpp b/include/brynet/net/TcpConnection.hpp index ae1b0d78..d8bd6055 100644 --- a/include/brynet/net/TcpConnection.hpp +++ b/include/brynet/net/TcpConnection.hpp @@ -82,7 +82,7 @@ namespace brynet { namespace net { { if (isServerSide) { - if (slHelper->getOpenSSLCTX() == nullptr || + if (sslHelper->getOpenSSLCTX() == nullptr || !session->initAcceptSSL(sslHelper->getOpenSSLCTX())) { throw std::runtime_error("init ssl failed");