diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 9238cfbf0..af97698c4 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -812,6 +812,11 @@ class ClientConnect(controller.Msg): def __eq__(self, other): return self._get_state() == other._get_state() + def __str__(self): + if self.address: + return "%s:%d"%(self.address[0],self.address[1]) + return "None" + def _load_state(self, state): self.close = True self.error = state["error"]