diff options
author | Maximilian Hils <git@maximilianhils.com> | 2013-08-18 20:03:53 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2013-08-18 20:03:53 +0200 |
commit | bb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28 (patch) | |
tree | 40962be66f79b0daffa2232439ea525d8cda5f00 /test/tservers.py | |
parent | 729677cd85cffedec8f481f1b6025f00fb637e13 (diff) | |
download | mitmproxy-bb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28.tar.gz mitmproxy-bb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28.tar.bz2 mitmproxy-bb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28.zip |
add option to expose webapp externally, remove distinct ip setting
Diffstat (limited to 'test/tservers.py')
-rw-r--r-- | test/tservers.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/tservers.py b/test/tservers.py index 0606bd9c..eb3b91a4 100644 --- a/test/tservers.py +++ b/test/tservers.py @@ -2,11 +2,9 @@ import threading, Queue import flask import libpathod.test, libpathod.pathoc from libmproxy import proxy, flow, controller +from libmproxy.cmdline import APP_HOST, APP_PORT import tutils -APP_DOMAIN = "mitm" -APP_IP = "1.1.1.1" - testapp = flask.Flask(__name__) @testapp.route("/") @@ -31,7 +29,7 @@ class TestMaster(flow.FlowMaster): flow.FlowMaster.__init__(self, s, state) self.testq = testq self.clear_log() - self.start_app(APP_DOMAIN, APP_IP) + self.start_app(APP_HOST, APP_PORT, False) def handle_request(self, m): flow.FlowMaster.handle_request(self, m) |