mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix a crash in mitmdump event display.
This commit is contained in:
parent
6cd32bf96f
commit
0f4ae61e7d
@ -139,7 +139,7 @@ class DumpMaster(flow.FlowMaster):
|
||||
|
||||
def handle_clientdisconnect(self, c):
|
||||
if self.eventlog:
|
||||
print >> self.outfile, "Disconnect from: %s:%s"%c.client_conn.address,
|
||||
print >> self.outfile, "Disconnect from: %s:%s"%tuple(c.client_conn.address),
|
||||
print >> self.outfile, "(handled %s requests)"%c.client_conn.requestcount
|
||||
if c.client_conn.connection_error:
|
||||
print >> self.outfile, "\terror: %s"%c.client_conn.connection_error
|
||||
|
@ -701,7 +701,7 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
|
||||
keyfile = self.config.certfile or self.config.cacert,
|
||||
server_side = True,
|
||||
ssl_version = ssl.PROTOCOL_SSLv23,
|
||||
do_handshake_on_connect = True
|
||||
do_handshake_on_connect = True,
|
||||
)
|
||||
if sys.version_info[1] > 6:
|
||||
kwargs["ciphers"] = self.config.ciphers
|
||||
|
Loading…
Reference in New Issue
Block a user