aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/webaddons.py
blob: 6b52188c2b6c383f9d5a5c8823cb7643e51530af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class WebAddon:
    def load(self, loader):
        loader.add_option(
            "web_open_browser", bool, True,
            "Start a browser."
        )
        loader.add_option(
            "web_debug", bool, False,
            "Enable mitmweb debugging."
        )
        loader.add_option(
            "web_port", int, 8081,
            "Web UI port."
        )
        loader.add_option(
            "web_iface", str, "127.0.0.1",
            "Web UI interface."
        )