修复ssl最大版本号设置的笔误。
This commit is contained in:
@@ -1020,7 +1020,7 @@ static SSL * downstream_ssl_create(struct ssl_mgr * mgr, struct keyring * crt)
|
|||||||
if (mgr->ssl_min_version)
|
if (mgr->ssl_min_version)
|
||||||
{
|
{
|
||||||
if (SSL_CTX_set_min_proto_version(sslctx, mgr->ssl_min_version) == 0 ||
|
if (SSL_CTX_set_min_proto_version(sslctx, mgr->ssl_min_version) == 0 ||
|
||||||
SSL_CTX_set_max_proto_version(sslctx, mgr->ssl_min_version) == 0)
|
SSL_CTX_set_max_proto_version(sslctx, mgr->ssl_max_version) == 0)
|
||||||
{
|
{
|
||||||
SSL_CTX_free(sslctx);
|
SSL_CTX_free(sslctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user