blob: c3c912838e2d4d8b0af1aa51efdb04e591790d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from mitmproxy import ctx
from mitmproxy.utils import human
"""
A tiny addon to print the proxy status to terminal. Eventually this could
also print some stats on exit.
"""
class TermStatus:
def running(self):
if ctx.options.server:
ctx.log.info(
"Proxy server listening at http://{}".format(
human.format_address(ctx.master.server.address)
)
)
|