Clear ssl_ctx if not SSL transport type.

This commit is contained in:
Xie Han
2024-04-19 23:39:23 +08:00
committed by xiehan
parent 8b14b5ef9f
commit bb815f7323

View File

@@ -502,6 +502,8 @@ int RouteManager::get(enum TransportType type,
if (ssl_ctx == NULL)
ssl_ctx = global_client_ctx;
}
else
ssl_ctx = NULL;
uint64_t key = __generate_key(type, addrinfo, other_info, ep_params,
hostname, ssl_ctx);