Skip to content

Commit 23cdf83

Browse files
committed
fix: set higher tls version
1 parent 3dd0276 commit 23cdf83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/util/h2c_proxy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def _handle_connection(self, client_sock):
244244
# Wrap upstream with TLS if enabled
245245
if self.upstream_tls:
246246
upstream_ssl_ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
247+
upstream_ssl_ctx.minimum_version = ssl.TLSVersion.TLSv1_2
247248
upstream_ssl_ctx.set_alpn_protocols(['h2'])
248249
upstream_ssl_ctx.check_hostname = False
249250
upstream_ssl_ctx.verify_mode = ssl.CERT_NONE

0 commit comments

Comments
 (0)