mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
12 lines
288 B
Python
12 lines
288 B
Python
from mitmproxy import ctx
|
|
|
|
|
|
def load(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)
|