mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
do not connect if inline script already connected to upstream server
This commit is contained in:
parent
e546af2d33
commit
da3e7c0187
@ -85,7 +85,7 @@ class ConnectionHandler:
|
||||
self.determine_conntype()
|
||||
self.channel.ask("clientconnect", self)
|
||||
|
||||
if self.server_conn:
|
||||
if self.server_conn and not self.server_conn.connection:
|
||||
self.establish_server_connection()
|
||||
if client_ssl or server_ssl:
|
||||
self.establish_ssl(client=client_ssl, server=server_ssl)
|
||||
|
Loading…
Reference in New Issue
Block a user