-
|
Hi! Thanks for all the hard work and for the quick response time. I emailed @mhils about this question today, but also wanted to put it here, for anyone else with a similar question. Question My question is: What would be the best option to update the allow-list without restarting mitmproxy/-dump? Should I modify the code so that the "allow_hosts"-iterable can be edited? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Updating allow-hosts during execution should generally work fine:
|
Beta Was this translation helpful? Give feedback.
Updating allow-hosts during execution should generally work fine:
Oto update options interactively.mitmproxy.ctx.options.allow_hostsfrom within your addon (https://docs.mitmproxy.org/stable/addons-overview/).Here's a somewhat related example from a few days ago: https://gist.github.com/mhils/70b088bf320e6c249270d6a3e3c4feb8