支持alpn选项。
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user