Skip to content

Commit

Permalink
use correct option when determining TLS min/max versions, fix #5546
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Aug 22, 2022
1 parent 6d6d2bc commit 6ff5d0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,8 @@
* Setting `connection_strategy` to `lazy` now also disables early
upstream connections to fetch TLS certificate details.
(@mhils)
* Fix `tls_version_server_min` and `tls_version_server_max` options.
([#5546](https://github.com/mitmproxy/mitmproxy/issues/5546), @mhils)
* DTLS support ([#5397](https://github.com/mitmproxy/mitmproxy/pull/5397), @kckeiks).

## 28 June 2022: mitmproxy 8.1.1
Expand Down
4 changes: 2 additions & 2 deletions mitmproxy/addons/tlsconfig.py
Expand Up @@ -252,8 +252,8 @@ def tls_start_server(self, tls_start: tls.TlsData) -> None:

ssl_ctx = net_tls.create_proxy_server_context(
method=net_tls.Method.DTLS_CLIENT_METHOD if tls_start.is_dtls else net_tls.Method.TLS_CLIENT_METHOD,
min_version=net_tls.Version[ctx.options.tls_version_client_min],
max_version=net_tls.Version[ctx.options.tls_version_client_max],
min_version=net_tls.Version[ctx.options.tls_version_server_min],
max_version=net_tls.Version[ctx.options.tls_version_server_max],
cipher_list=tuple(cipher_list),
verify=verify,
ca_path=ctx.options.ssl_verify_upstream_trusted_confdir,
Expand Down

0 comments on commit 6ff5d0c

Please sign in to comment.