Browse Source

TLS: Set SNI hostname before connect

master
Travis Burtrum 7 years ago
parent
commit
dbad9285b8
  1. 4
      src/common/server.c

4
src/common/server.c

@ -487,6 +487,10 @@ ssl_do_connect (server * serv) @@ -487,6 +487,10 @@ ssl_do_connect (server * serv)
char buf[128];
g_sess = serv->server_session;
/* Set SNI hostname before connect */
SSL_set_tlsext_host_name(serv->ssl, serv->hostname);
if (SSL_connect (serv->ssl) <= 0)
{
char err_buf[128];

Loading…
Cancel
Save