mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
11 lines
257 B
Python
11 lines
257 B
Python
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):
|
|
ctx.log.info("custom option value: %s" % options.custom)
|