From bb4748fb8f5dd5ef6bc7bf70ee4e6db7ad019f28 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 18 Aug 2013 20:03:53 +0200 Subject: add option to expose webapp externally, remove distinct ip setting --- test/tservers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') 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) -- cgit v1.2.3