支持alpn选项。

This commit is contained in:
zhengchao
2018-10-29 14:45:07 +08:00
parent b6868bb079
commit 211031c9a3

View File

@@ -794,7 +794,10 @@ static SSL * upstream_ssl_create(struct ssl_mgr * mgr, const struct ssl_chello *
{
SSL_set_tlsext_host_name(ssl, chello->sni);
}
if (chello->alpn)
{
SSL_set_alpn_protos(ssl, chello->alpn, strlen(chello->alpn));
}
/* lower memory footprint for idle connections */
SSL_set_mode(ssl, SSL_get_mode(ssl) | SSL_MODE_RELEASE_BUFFERS);