diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-09-21 22:26:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 22:26:59 -0700 |
commit | dbc6344c8cfc5ca4d1fcaa808fe8536c80130c97 (patch) | |
tree | 071580fe5a66e0e07ea846b4be65dc13cc527099 | |
parent | e4ae35dabb6fdeb3d9de08c6611f72062fdf0607 (diff) | |
parent | d044786ac8ad6ebb3c7b9947e72e3df5c393c415 (diff) | |
download | mitmproxy-dbc6344c8cfc5ca4d1fcaa808fe8536c80130c97.tar.gz mitmproxy-dbc6344c8cfc5ca4d1fcaa808fe8536c80130c97.tar.bz2 mitmproxy-dbc6344c8cfc5ca4d1fcaa808fe8536c80130c97.zip |
Merge pull request #1522 from chhsiao90/dump-ready-#1505
Notify when proxy server started
-rw-r--r-- | mitmproxy/dump.py | 4 |
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.", |