Merge pull request #1987 from hakabahitoyo/bugfix-openssl-tls-sni

Bugfix OpenSSL TLS SNI
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2023-01-30 11:43:43 +00:00
commit 4c83f4e2de
1 file changed
+1
+1
View File
@@ -94,6 +94,7 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
if (opts->srvname.len > 0) {
char *s = mg_mprintf("%.*s", (int) opts->srvname.len, opts->srvname.ptr);
SSL_set1_host(tls->ssl, s);
SSL_set_tlsext_host_name(tls->ssl, s);
free(s);
}
#endif