mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Serialize address as part of ClientConnect objects.
This is a serialization format change!
This commit is contained in:
@@ -655,12 +655,14 @@ class ClientConnect(controller.Msg):
|
||||
|
||||
def _load_state(self, state):
|
||||
self.close = True
|
||||
self.error = state["error"]
|
||||
self.requestcount = state["requestcount"]
|
||||
|
||||
def _get_state(self):
|
||||
return dict(
|
||||
address = list(self.address),
|
||||
requestcount = self.requestcount,
|
||||
error = self.error,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user