aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/models/connections.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/models/connections.py')
-rw-r--r--libmproxy/models/connections.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/libmproxy/models/connections.py b/libmproxy/models/connections.py
index a45e1629..1d7c980e 100644
--- a/libmproxy/models/connections.py
+++ b/libmproxy/models/connections.py
@@ -48,8 +48,8 @@ class ClientConnection(tcp.BaseHandler, stateobject.StateObject):
timestamp_ssl_setup=float
)
- def get_state(self, short=False):
- d = super(ClientConnection, self).get_state(short)
+ def get_state(self):
+ d = super(ClientConnection, self).get_state()
d.update(
address=({
"address": self.address(),
@@ -130,10 +130,9 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject):
ssl_established=bool,
sni=str
)
- _stateobject_long_attributes = {"cert"}
- def get_state(self, short=False):
- d = super(ServerConnection, self).get_state(short)
+ def get_state(self):
+ d = super(ServerConnection, self).get_state()
d.update(
address=({"address": self.address(),
"use_ipv6": self.address.use_ipv6} if self.address else {}),