aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy/modes/transparent_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/proxy/modes/transparent_proxy.py')
-rw-r--r--libmproxy/proxy/modes/transparent_proxy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/proxy/modes/transparent_proxy.py b/libmproxy/proxy/modes/transparent_proxy.py
index 96ad86c4..da1d4632 100644
--- a/libmproxy/proxy/modes/transparent_proxy.py
+++ b/libmproxy/proxy/modes/transparent_proxy.py
@@ -14,11 +14,11 @@ class TransparentProxy(Layer, ServerConnectionMixin):
try:
self.server_conn.address = self.resolver.original_addr(self.client_conn.connection)
except Exception as e:
- raise ProtocolException("Transparent mode failure: %s" % repr(e), e)
+ raise ProtocolException("Transparent mode failure: %s" % repr(e))
layer = self.ctx.next_layer(self)
try:
layer()
finally:
if self.server_conn:
- self._disconnect()
+ self.disconnect()