aboutsummaryrefslogtreecommitdiffstats
path: root/test/tservers.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2013-08-18 20:03:53 +0200
committerMaximilian Hils <git@maximilianhils.com>2013-08-18 20:03:53 +0200
commitbb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28 (patch)
tree40962be66f79b0daffa2232439ea525d8cda5f00 /test/tservers.py
parent729677cd85cffedec8f481f1b6025f00fb637e13 (diff)
downloadmitmproxy-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.py6
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)