Set SNI name in the gnutls backend as well

This commit is contained in:
0xd34df00d 2019-10-13 17:21:43 -04:00
parent 0fcf45b131
commit 86b59de8d0

View File

@ -94,6 +94,8 @@ void TLSSocket_GnuTLS::connect(const string& address, const port_t port) {
try {
gnutls_server_name_set(*m_session->m_gnutlsSession, GNUTLS_NAME_DNS, address.c_str(), address.size());
m_wrapped->connect(address, port);
handshake();