From 7a01239d4d3f986894194e1c43c29716a2380d0c Mon Sep 17 00:00:00 2001 From: melpon Date: Mon, 20 Nov 2023 11:26:02 +0900 Subject: [PATCH] Set SNI for mbedTLS --- src/impl/tlstransport.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/impl/tlstransport.cpp b/src/impl/tlstransport.cpp index 3660a7f3f..0cca128cd 100644 --- a/src/impl/tlstransport.cpp +++ b/src/impl/tlstransport.cpp @@ -344,6 +344,11 @@ TlsTransport::TlsTransport(variant, shared_ptrc_str()); + } + mbedtls::check(mbedtls_ssl_setup(&mSsl, &mConf)); mbedtls_ssl_set_bio(&mSsl, static_cast(this), WriteCallback, ReadCallback, NULL);