%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python3/dist-packages/mitmproxy/addons/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python3/dist-packages/mitmproxy/addons/termstatus.py

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.master.server.bound:
            ctx.log.info(
                "Proxy server listening at http://{}".format(
                    human.format_address(ctx.master.server.address)
                )
            )

Zerion Mini Shell 1.0