aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchhsiao90 <chhsiao90@gmail.com>2016-09-03 10:00:16 +0800
committerchhsiao90 <chhsiao90@gmail.com>2016-09-22 13:23:30 +0800
commitd044786ac8ad6ebb3c7b9947e72e3df5c393c415 (patch)
treeec5f322ba600160b3b8604215d5cd4491f4e50ad
parentd5427c7298b0c6aee009a86dec041011427689e9 (diff)
downloadmitmproxy-d044786ac8ad6ebb3c7b9947e72e3df5c393c415.tar.gz
mitmproxy-d044786ac8ad6ebb3c7b9947e72e3df5c393c415.tar.bz2
mitmproxy-d044786ac8ad6ebb3c7b9947e72e3df5c393c415.zip
Notify when proxy server started
-rw-r--r--mitmproxy/dump.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py
index 2dc90031..778968b9 100644
--- a/mitmproxy/dump.py
+++ b/mitmproxy/dump.py
@@ -48,6 +48,10 @@ class DumpMaster(flow.FlowMaster):
self.options = self.options # type: Options
self.set_stream_large_bodies(options.stream_large_bodies)
+ print("Proxy server listening at http://%s:%d" % (
+ (options.listen_host or "0.0.0.0"),
+ options.listen_port))
+
if self.server and self.options.http2 and not tcp.HAS_ALPN: # pragma: no cover
print("ALPN support missing (OpenSSL 1.0.2+ required)!\n"
"HTTP/2 is disabled. Use --no-http2 to silence this warning.",