diff --git a/platform/src/ssl_stream.cpp b/platform/src/ssl_stream.cpp index 7c8aa75..2ee5e55 100644 --- a/platform/src/ssl_stream.cpp +++ b/platform/src/ssl_stream.cpp @@ -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);