Configuration file does not work for some options
See original GitHub issueIn mitmproxy 0.18, I could have a --conf
with a line like this:
reverse = http://server01.example.net:1181
which caused mitmproxy to start in reverse proxy mode.
But I can’t seem to find an equivalent in mitmproxy 1.0:
$ mitmproxy --conf tools/mitmproxy/api.yaml
Traceback (most recent call last):
File "/home/vasiliy/env/mitmproxy/bin/mitmproxy", line 11, in <module>
sys.exit(mitmproxy())
File "/home/vasiliy/env/mitmproxy/lib/python3.5/site-packages/mitmproxy/tools/main.py", line 68, in mitmproxy
console_options.load_paths(args.conf)
File "/home/vasiliy/env/mitmproxy/lib/python3.5/site-packages/mitmproxy/optmanager.py", line 245, in load_paths
self.load(txt)
File "/home/vasiliy/env/mitmproxy/lib/python3.5/site-packages/mitmproxy/optmanager.py", line 232, in load
self.update(**data)
File "/home/vasiliy/env/mitmproxy/lib/python3.5/site-packages/mitmproxy/optmanager.py", line 141, in update
raise KeyError("No such option: %s" % k)
KeyError: 'No such option: reverse'
So I have to specify --reverse
on the command line every time, which is inconvenient.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Configuration.Save operation not working for some machine
The Configuration.Save() method seems to be the issue based on our program's log file. When a problem with this call happens a " ......
Read more >Configuration files for code analysis rules - .NET
Learn about different configuration files to configure code analysis rules.
Read more >What is configuration file? | Definition from TechTarget
A configuration file, often shortened to config file, defines the parameters, options, settings and preferences applied to operating systems (OSes), ...
Read more >MySQL 8.0 Reference Manual :: 4.2.2.2 Using Option Files
A server started with the persisted_globals_load system variable disabled does not read mysqld-auto.cnf . Many option files are plain text files, ...
Read more >[Chapter 4] 4.3 Configuration File Options - O'Reilly
The global config file option specifies a replacement configuration file that will be loaded when the option is encountered. If the target file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll work on a different issue for now then 🙂
This should now be fixed - we’ve had a complete, principled revamp of how options are managed and applied. See “mitmdump --options” for a full record of all options, their types, and defaults.