This commit is contained in:
Xiaoxu Guo 2022-11-01 05:21:19 +09:00 committed by GitHub
commit 201b45bb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -551,6 +551,7 @@ static void initiate_connection(struct event_base *evbase, SSL_CTX *ssl_ctx,
SSL *ssl;
ssl = create_ssl(ssl_ctx);
SSL_set_tlsext_host_name(ssl, host);
bev = bufferevent_openssl_socket_new(
evbase, -1, ssl, BUFFEREVENT_SSL_CONNECTING,
BEV_OPT_DEFER_CALLBACKS | BEV_OPT_CLOSE_ON_FREE);