diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-09-24 18:21:58 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-09-24 18:21:58 -0700 |
commit | 6f86741574ca38b11ecb2c196ce636aea3f25b63 (patch) | |
tree | 9f71278f5410e1b4ba466b51b2f30d9c4b2f7daa /mitmproxy/dump.py | |
parent | 0a643ad20fa45c2fbd8a9de16aa7d632bd89d190 (diff) | |
download | mitmproxy-6f86741574ca38b11ecb2c196ce636aea3f25b63.tar.gz mitmproxy-6f86741574ca38b11ecb2c196ce636aea3f25b63.tar.bz2 mitmproxy-6f86741574ca38b11ecb2c196ce636aea3f25b63.zip |
minor fixes
Diffstat (limited to 'mitmproxy/dump.py')
-rw-r--r-- | mitmproxy/dump.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index e894dd36..9c40ff2d 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -48,9 +48,8 @@ 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 not self.options.no_server: + print("Proxy server listening at http://{}".format(server.address)) 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" |