aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2013-12-08 01:09:46 -0800
committerAldo Cortesi <aldo@corte.si>2013-12-08 01:09:46 -0800
commit7aeaf9d4488d57c012cd1252ba5d0b2d6dcd1894 (patch)
tree6500a7d1c84226d343227244642ae29e2c9e4205 /test
parent2956c144d30558141ec43bec798a424974ffa6f1 (diff)
parentbb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28 (diff)
downloadmitmproxy-7aeaf9d4488d57c012cd1252ba5d0b2d6dcd1894.tar.gz
mitmproxy-7aeaf9d4488d57c012cd1252ba5d0b2d6dcd1894.tar.bz2
mitmproxy-7aeaf9d4488d57c012cd1252ba5d0b2d6dcd1894.zip
Merge pull request #161 from mitmproxy/external_webapp
External webapp
Diffstat (limited to 'test')
-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)