mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
SNI support
This commit is contained in:
@@ -444,6 +444,7 @@ namespace data
|
|||||||
s.lowest_layer().connect (*it, ecode);
|
s.lowest_layer().connect (*it, ecode);
|
||||||
if (!ecode)
|
if (!ecode)
|
||||||
{
|
{
|
||||||
|
SSL_set_tlsext_host_name(s.native_handle(), url.host.c_str ());
|
||||||
s.handshake (boost::asio::ssl::stream_base::client, ecode);
|
s.handshake (boost::asio::ssl::stream_base::client, ecode);
|
||||||
if (!ecode)
|
if (!ecode)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user