mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix proxy reconnect
This commit is contained in:
parent
985213a6bc
commit
cf57020038
@ -163,7 +163,7 @@ class ServerConnectionMixin(object):
|
|||||||
self.server_conn.finish()
|
self.server_conn.finish()
|
||||||
self.server_conn.close()
|
self.server_conn.close()
|
||||||
self.channel.tell("serverdisconnect", self.server_conn)
|
self.channel.tell("serverdisconnect", self.server_conn)
|
||||||
self.server_conn = ServerConnection(address, source_address)
|
self.server_conn = ServerConnection(address, (source_address.host, 0))
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user