question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration file does not work for some options

See original GitHub issue

In 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:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ujjwal96commented, Feb 3, 2017

I’ll work on a different issue for now then 🙂

0reactions
cortesicommented, Mar 16, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found