| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #3162
|
|
|
|
|
|
|
|
| |
The existing options for the console were not being updated when a new
addon was added. This triggers the changed blinker signal when an option
is added, and also recreates self.opts when this signal is received.
Fixes #3147
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
We've had a perpetual sequencing problem with addon startup. Users need to be
able to specify options to addons on the command-line, before addons are
actually loaded. This is only exacerbated with the new async core, where load
order can't be relied on.
This patch introduces deferred options. Options passed with "--set" on the
command line are deferred if they are unknown, and are automatically applied by
the addon manager once matching addons are registered and their options are defined.
|
|
|
|
|
|
|
|
|
| |
This takes the first few steps:
- Extends taddons to make loading addon options easier
- Removes dependencies in the test suite on options in addons
- Tweaks command-line parser autocreation to ignore nonexistent options. This
lets us load common options without over-depending on loaded addons.
|
| |
|
|\
| |
| | |
Remove OptManager._processed
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of having the core addon do postprocessing on body_size_limit,
we add a cache to the parsing function. First, this avoids any potential issues
with options and _processed getting out of sync. As anecdotal evidence,
the previous implementation did not clear _processed when body_size_limit was
reset to None. Second, it achieves the same end result without introducing a new
concept of a "_processed" scratch space. Third, it works even if addons aren't present,
and does not require workarounds as previously present in test_http2.py.
refs https://github.com/mitmproxy/mitmproxy/pull/2484#pullrequestreview-53101507
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
commit edfbd41200a854f0bb7bb99f8bb70af9dbb9b8e0
Author: Matt Weidner <matt.weidner@gmail.com>
Date: Tue Jul 25 01:19:53 2017 -0500
Extended view.load test to check for unhandled IOError exception.
commit a523b534bc59ea97ed1fd5a3e6f78112fee19b6f
Author: requires.io <support@requires.io>
Date: Mon Jul 24 21:25:04 2017 +0200
[requires.io] dependency update
commit c725540c6eb92c003616b649ba43bee1f14e56ac
Author: Thomas Kriechbaumer <thomas@kriechbaumer.name>
Date: Mon Jul 24 21:01:25 2017 +0200
update travis
commit eeb6cfb4c76e60ac1813b839f589cd489c041c6c
Author: Thomas Kriechbaumer <Kriechi@users.noreply.github.com>
Date: Mon Jul 24 21:03:14 2017 +0200
[requires.io] dependency update on master branch (#2435)
commit 51a2672c782ee8ba8c7d5c7116073feccb4d8430
Author: Maximilian Hils <git@maximilianhils.com>
Date: Mon Jul 24 19:03:01 2017 +0200
require latest mypy version (refs #2452)
commit 5685a4850af6edda7100cae900487955c8b7a3ab
Author: Maximilian Hils <git@maximilianhils.com>
Date: Fri Jul 21 11:24:42 2017 +0200
fix addon tracebacks
`.tb_next` discards the first interesting frame,
this shouldn't happen.
commit a2da9b6c02030293f3a412d16df819868c581a29
Author: Matt Weidner <matt.weidner@gmail.com>
Date: Sat Jul 22 12:30:15 2017 -0500
Added os.path.expanduser() before open() calls with user supplied paths
commit 05db6e32c7957f267e97c34aa8f5a3cd6cb7dbb2
Author: Matt Weidner <matt.weidner@gmail.com>
Date: Fri Jul 21 16:25:16 2017 -0500
Added support for the ~ path shortcut when loading flows from disk.
for consistency. Saving flows supports using paths with the ~ shortcut.
commit b7f864b6bbd221093aeb1c384dd16038f490441a
Author: Matt Weidner <matt.weidner@gmail.com>
Date: Fri Jul 21 16:06:38 2017 -0500
Fixed crash when loading flows from a file that does not exist
|
| |
|
| |
|
|\
| |
| | |
[WIP] Add RESTful API for mitmweb option
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
This shifts a set of flow list keys to keymaps. Much more to come.
|
|
|
|
|
| |
- Add a command manager
- Sketch out the type system with a few simple supported types
|
|
|
|
|
|
|
|
| |
- Fix some loading sequence bugs affecting command-line script invocation
- Allow addons to over-ride existing options (with a warning). We need this for
reloading.
- Convert har_dump to new-style arguments, fix and re-instate its test suite.
- Covnert miscelaneous other exmples to new-style args.
|
|
|
|
| |
Also handle errors in console options manager.
|
|
|
|
| |
Fixes #2174
|
|
|
|
| |
Fixes #2122
|
| |
|
| |
|
|
|
|
|
|
| |
- Move default client ciphers - no need to have a 10-line string default.
- Add some style guidance on options help
- Be consistent about reflowing options help
|
| |
|
|
|
|
|
| |
We also now ignore unknown options in config files by default, and print a
warning if verbosity is incremented.
|
|
|
|
|
|
| |
Attributes on options share a namespace with options themselves. It's getting
too crowded on our Options object, so let's shift some obvious stuff into the
module.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- Add an options parameter to the start() event. This is to be used by addons
on startup to add custom options.
- Add a running() event that is called once the proxy is up and running.
- With the new paradigm we can't log during master __init__, so add a tiny
termstatus addon to print proxy status to terminal once we're running.
|
| |
|
|
|
|
|
| |
`typing.Type` should have been `typing.Type[Any]`,
which in turn is equivalent to `type`
|
|
|
|
|
| |
name, type, value matches natural language ($x is a bool with a default value of $y)
and also matches the python type annotation order of name: type = value
|
|
|
|
|
| |
The mechanism for booleans attaches the short flag to whatever the opposite of
the default is.
|
| |
|
|
|
|
|
|
|
| |
- Regularise presentation and wording
- Help is mandatory for all options
- Auto-generate wording to say that sequence options can be passed multiple
times on the command-line
|
|
|
|
|
|
| |
We now have --set, so only options that really deserve it get a dedicated flag.
I'm inclined to strip this back even more. Feel free to argue that YOUR
favourite option deserves special treatment here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The --set option is a universal flag for setting options. Some examples:
Turn on a boolean:
mitmdump --set onboarding=false
Add a value to a sequence:
mitumdupm --set setheaders=/foo/bar/voing
Zero a sequence:
mitumdupm --set setheaders
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Now that options are completely regular, we can automate reading them out of
arguments, rather than listing them out by hand like savages.
|
| |
|