aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-10-16 23:05:33 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-10-16 23:05:51 -0700
commit758860531a5602a3280fc3669aa7dfbc327f1c56 (patch)
treea23e2aece1e9dfe90af3f6d9db5af269ea315b2a /test
parent43a83c89e73905daa7ebc27313a45546f0a33f61 (diff)
downloadmitmproxy-758860531a5602a3280fc3669aa7dfbc327f1c56.tar.gz
mitmproxy-758860531a5602a3280fc3669aa7dfbc327f1c56.tar.bz2
mitmproxy-758860531a5602a3280fc3669aa7dfbc327f1c56.zip
fix socks5 mode with tls
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_server.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/mitmproxy/test_server.py b/test/mitmproxy/test_server.py
index 923d8ccf..a175d193 100644
--- a/test/mitmproxy/test_server.py
+++ b/test/mitmproxy/test_server.py
@@ -536,6 +536,18 @@ class TestSocks5(tservers.SocksModeTest):
assert b"SOCKS5 mode failure" in f.content
+class TestSocks5SSL(tservers.SocksModeTest):
+ ssl = True
+
+ def test_simple(self):
+ p = self.pathoc_raw()
+ with p.connect():
+ p.socks_connect(("localhost", self.server.port))
+ p.convert_to_ssl()
+ f = p.request("get:/p/200")
+ assert f.status_code == 200
+
+
class TestHttps2Http(tservers.ReverseProxyTest):
@classmethod