diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-20 12:53:42 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-20 12:53:42 +1300 |
commit | c2ae8285f4bc092a449d92f4bbdb150d586c2c51 (patch) | |
tree | 33a86f34ae058b5b382c2c5565744ffc5523041a /test/test_proxy.py | |
parent | 4fc807cedd9a481db9e0fc1633d8c169f53f4a8e (diff) | |
download | mitmproxy-c2ae8285f4bc092a449d92f4bbdb150d586c2c51.tar.gz mitmproxy-c2ae8285f4bc092a449d92f4bbdb150d586c2c51.tar.bz2 mitmproxy-c2ae8285f4bc092a449d92f4bbdb150d586c2c51.zip |
Revamp SSL configuration.
- Move option parsing utiliities to proxy.py
- Don't have a global config object. Pass it as an argument to ProxyServer.
- Simplify certificate generation logic.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py index 0b40164e..0c05aeb2 100644 --- a/test/test_proxy.py +++ b/test/test_proxy.py @@ -15,7 +15,7 @@ HTTPS_PORT = random.randint(30000, 40000) class TestMaster(controller.Master): def __init__(self, port, testq): - serv = proxy.ProxyServer(port) + serv = proxy.ProxyServer(proxy.Config("data/testkey.pem"), port) controller.Master.__init__(self, serv) self.testq = testq self.log = [] @@ -54,7 +54,6 @@ class ServerThread(threading.Thread): class _TestServers(libpry.TestContainer): def setUpAll(self): - proxy.config = proxy.Config("data/testkey.pem") self.tqueue = Queue.Queue() # We don't make any concurrent requests, so we can access # the attributes on this object safely. |