aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/reverse_proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-28 01:51:13 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-28 01:51:13 +0200
commit1cc48345e13917aadc1e0fd93d6011139e78e3d9 (patch)
tree9758b20f95587104807fc74e545e35ec9a9cdef3 /libmproxy/protocol2/reverse_proxy.py
parenta86491eeed13c7889356e5102312f52bd86c3c66 (diff)
downloadmitmproxy-1cc48345e13917aadc1e0fd93d6011139e78e3d9.tar.gz
mitmproxy-1cc48345e13917aadc1e0fd93d6011139e78e3d9.tar.bz2
mitmproxy-1cc48345e13917aadc1e0fd93d6011139e78e3d9.zip
clean up config/cmdline, fix bugs, remove cruft
Diffstat (limited to 'libmproxy/protocol2/reverse_proxy.py')
-rw-r--r--libmproxy/protocol2/reverse_proxy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/libmproxy/protocol2/reverse_proxy.py b/libmproxy/protocol2/reverse_proxy.py
index 9d5a4beb..76163c71 100644
--- a/libmproxy/protocol2/reverse_proxy.py
+++ b/libmproxy/protocol2/reverse_proxy.py
@@ -12,10 +12,7 @@ class ReverseProxy(Layer, ServerConnectionMixin):
self._server_tls = server_tls
def __call__(self):
- if self._client_tls or self._server_tls:
- layer = TlsLayer(self, self._client_tls, self._server_tls)
- else:
- layer = self.ctx.next_layer(self)
+ layer = TlsLayer(self, self._client_tls, self._server_tls)
try:
layer()