diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-03-14 01:43:56 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-03-14 17:08:40 +0100 |
commit | 30797755fb4c42274f5c1cea98a060d883f313df (patch) | |
tree | 225fda73e96f92b502b423a354cfc42448f3099e /mitmproxy/connections.py | |
parent | 375680a3be47b7dd7b94ebd376978d9e4d90abcd (diff) | |
download | mitmproxy-30797755fb4c42274f5c1cea98a060d883f313df.tar.gz mitmproxy-30797755fb4c42274f5c1cea98a060d883f313df.tar.bz2 mitmproxy-30797755fb4c42274f5c1cea98a060d883f313df.zip |
stateobject: automatically change id when copying
Diffstat (limited to 'mitmproxy/connections.py')
-rw-r--r-- | mitmproxy/connections.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/mitmproxy/connections.py b/mitmproxy/connections.py index 5a3cb69e..01721a71 100644 --- a/mitmproxy/connections.py +++ b/mitmproxy/connections.py @@ -83,11 +83,6 @@ class ClientConnection(tcp.BaseHandler, stateobject.StateObject): def __hash__(self): return hash(self.id) - def copy(self): - f = super().copy() - f.id = str(uuid.uuid4()) - return f - @property def tls_established(self): return self.ssl_established @@ -222,11 +217,6 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject): def __hash__(self): return hash(self.id) - def copy(self): - f = super().copy() - f.id = str(uuid.uuid4()) - return f - @property def tls_established(self): return self.ssl_established |