diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 23:34:43 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 23:34:43 +0200 |
commit | fbc4bb38df48447f846ae0ff4f87062c827bd632 (patch) | |
tree | 3955afbe79f9e9e6497565c1e2a34d9c66234ed9 /test/tservers.py | |
parent | 7ea8d3ff357e278ba047a18a0dcc4bd434017c79 (diff) | |
download | mitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.tar.gz mitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.tar.bz2 mitmproxy-fbc4bb38df48447f846ae0ff4f87062c827bd632.zip |
mitmproxy -> libmproxy.main. do some leanup on the way
Diffstat (limited to 'test/tservers.py')
-rw-r--r-- | test/tservers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tservers.py b/test/tservers.py index 009a3c92..2097631e 100644 --- a/test/tservers.py +++ b/test/tservers.py @@ -29,7 +29,8 @@ def errapp(environ, start_response): class TestMaster(flow.FlowMaster): def __init__(self, config): - s = ProxyServer(config, 0) + config.port = 0 + s = ProxyServer(config) state = flow.State() flow.FlowMaster.__init__(self, s, state) self.apps.add(testapp, "testapp", 80) |