diff --git a/libmproxy/models/connections.py b/libmproxy/models/connections.py index ec0894716..3aa522eac 100644 --- a/libmproxy/models/connections.py +++ b/libmproxy/models/connections.py @@ -31,10 +31,9 @@ class ClientConnection(tcp.BaseHandler, stateobject.StateObject): return bool(self.connection) and not self.finished def __repr__(self): - return "".format( + return "".format( ssl="[ssl] " if self.ssl_established else "", - host=self.address.host, - port=self.address.port + address=repr(self.address) ) @property @@ -109,10 +108,9 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject): ssl = "[ssl] " else: ssl = "" - return "".format( + return "".format( ssl=ssl, - host=self.address.host, - port=self.address.port + address=repr(self.address) ) @property