mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
use flow.id to link websocket + handshake flows
This commit is contained in:
parent
b1dd86d7ae
commit
49e0f23848
@ -140,7 +140,8 @@ class WebSocketLayer(base.Layer):
|
||||
|
||||
def __call__(self):
|
||||
self.flow = WebSocketFlow(self.client_conn, self.server_conn, self.handshake_flow, self)
|
||||
self.handshake_flow.metadata['websocket_flow'] = self.flow
|
||||
self.flow.metadata['websocket_handshake'] = self.handshake_flow.id
|
||||
self.handshake_flow.metadata['websocket_flow'] = self.flow.id
|
||||
self.channel.ask("websocket_start", self.flow)
|
||||
|
||||
client = self.client_conn.connection
|
||||
|
Loading…
Reference in New Issue
Block a user