mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Update Server.py to improve cipher selection
Differentiated client ciphers and added server ciphers.
This commit is contained in:
parent
0b7b0ac33d
commit
6a1e294149
@ -189,6 +189,7 @@ class ConnectionHandler:
|
||||
sni,
|
||||
method=self.config.openssl_server_method,
|
||||
options=self.config.openssl_server_options
|
||||
cipher_list=self.config.server_ciphers,
|
||||
)
|
||||
except tcp.NetLibError as v:
|
||||
e = ProxyError(502, repr(v))
|
||||
@ -210,7 +211,7 @@ class ConnectionHandler:
|
||||
method=self.config.openssl_client_method,
|
||||
options=self.config.openssl_client_options,
|
||||
handle_sni=self.handle_sni,
|
||||
cipher_list=self.config.ciphers,
|
||||
cipher_list=self.config.client_ciphers,
|
||||
dhparams=self.config.certstore.dhparams,
|
||||
chain_file=chain_file
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user