blob: 324d27e7c58f76837f9395194bb2327123509746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from mitmproxy import ctx
def start(options):
ctx.log.info("Registering option 'custom'")
options.add_option("custom", bool, False, "A custom option")
def configure(options, updated):
if "custom" in updated:
ctx.log.info("custom option value: %s" % options.custom)
|