mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
establish tls with client even if server connection fails
This commit is contained in:
parent
3eea7f1216
commit
89013eb7af
@ -379,11 +379,10 @@ class TlsLayer(Layer):
|
||||
return choice
|
||||
|
||||
def _establish_tls_with_client_and_server(self):
|
||||
self.ctx.connect()
|
||||
|
||||
# If establishing TLS with the server fails, we try to establish TLS with the client nonetheless
|
||||
# to send an error message over TLS.
|
||||
try:
|
||||
self.ctx.connect()
|
||||
self._establish_tls_with_server()
|
||||
except Exception as e:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user