mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 11:17:24 +00:00
Merge remote-tracking branch 'upstream/main' into quic
This commit is contained in:
commit
a2d962b09a
5 changed files with 34 additions and 12 deletions
21
CHANGELOG.md
21
CHANGELOG.md
|
|
@ -2,8 +2,19 @@
|
|||
|
||||
## Unreleased: mitmproxy next
|
||||
|
||||
* Hard exit when mitmproxy cannot write logs, fixes endless loop when parent process exits
|
||||
([#4669](https://github.com/mitmproxy/mitmproxy/issues/4669), @Prinzhorn))
|
||||
|
||||
|
||||
## 02 November 2022: mitmproxy 9.0.1
|
||||
|
||||
* The precompiled binaries now ship with OpenSSL 3.0.7, which resolves CVE-2022-3602 and CVE-2022-3786.
|
||||
* Performance and stability improvements for WireGuard mode.
|
||||
([#5694](https://github.com/mitmproxy/mitmproxy/issues/5694), @mhils, @decathorpe)
|
||||
* Fix a bug where the standalone Linux binaries would require libffi to be installed.
|
||||
([#5699](https://github.com/mitmproxy/mitmproxy/issues/5699), @mhils)
|
||||
* Hard exit when mitmproxy cannot write logs, fixes endless loop when parent process exits.
|
||||
([#4669](https://github.com/mitmproxy/mitmproxy/issues/4669), @Prinzhorn)
|
||||
* Fix a permission error affecting the Docker images.
|
||||
([#5700](https://github.com/mitmproxy/mitmproxy/issues/5700), @mhils)
|
||||
|
||||
|
||||
## 28 October 2022: mitmproxy 9.0.0
|
||||
|
|
@ -27,6 +38,12 @@
|
|||
* Deprecate `mitmproxy.ctx.log` in favor of Python's builtin `logging` module.
|
||||
See [the docs](https://docs.mitmproxy.org/dev/addons-api-changelog/) for details and upgrade instructions.
|
||||
([#5590](https://github.com/mitmproxy/mitmproxy/pull/5590), @mhils)
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
* The `mode` option is now a list of server specs instead of a single spec.
|
||||
The CLI interface is unaffected, but users may need to update their `config.yaml`.
|
||||
([#5393](https://github.com/mitmproxy/mitmproxy/pull/5393), @mhils)
|
||||
|
||||
### Full Changelog
|
||||
|
||||
|
|
|
|||
|
|
@ -103,8 +103,9 @@ class Options(optmanager.OptManager):
|
|||
The proxy server type(s) to spawn. Can be passed multiple times.
|
||||
|
||||
Mitmproxy supports "regular" (HTTP), "transparent", "socks5", "reverse:SPEC",
|
||||
and "upstream:SPEC" proxy servers. For reverse and upstream proxy modes, SPEC
|
||||
is host specification in the form of "http[s]://host[:port]".
|
||||
"upstream:SPEC", and "wireguard[:PATH]" proxy servers. For reverse and upstream proxy modes, SPEC
|
||||
is host specification in the form of "http[s]://host[:port]". For WireGuard mode, PATH may point to
|
||||
a file containing key material. If no such file exists, it will be created on startup.
|
||||
|
||||
You may append `@listen_port` or `@listen_host:listen_port` to override `listen_host` or `listen_port` for
|
||||
a specific proxy mode. Features such as client playback will use the first mode to determine
|
||||
|
|
|
|||
|
|
@ -308,6 +308,7 @@ class WireGuardServerInstance(ServerInstance[mode_specs.WireGuardMode]):
|
|||
|
||||
try:
|
||||
if not conf_path.exists():
|
||||
conf_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
conf_path.write_text(json.dumps({
|
||||
"server_key": wg.genkey(),
|
||||
"client_key": wg.genkey(),
|
||||
|
|
|
|||
|
|
@ -7,14 +7,17 @@ set -o nounset
|
|||
|
||||
MITMPROXY_PATH="/home/mitmproxy/.mitmproxy"
|
||||
|
||||
if [ -f "$MITMPROXY_PATH/mitmproxy-ca.pem" ]; then
|
||||
f="$MITMPROXY_PATH/mitmproxy-ca.pem"
|
||||
else
|
||||
f="$MITMPROXY_PATH"
|
||||
fi
|
||||
usermod -o \
|
||||
-u $(stat -c "%u" "$f") \
|
||||
-g $(stat -c "%g" "$f") \
|
||||
mitmproxy
|
||||
|
||||
if [[ "$1" = "mitmdump" || "$1" = "mitmproxy" || "$1" = "mitmweb" ]]; then
|
||||
mkdir -p "$MITMPROXY_PATH"
|
||||
if [ -f "$MITMPROXY_PATH/mitmproxy-ca.pem" ]; then
|
||||
usermod -o \
|
||||
-u $(stat -c "%u" "$MITMPROXY_PATH/mitmproxy-ca.pem") \
|
||||
-g $(stat -c "%g" "$MITMPROXY_PATH/mitmproxy-ca.pem") \
|
||||
mitmproxy
|
||||
fi
|
||||
gosu mitmproxy "$@"
|
||||
else
|
||||
exec "$@"
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -109,7 +109,7 @@ setup(
|
|||
"hypothesis>=5.8,<7",
|
||||
"parver>=0.1,<2.0",
|
||||
"pdoc>=4.0.0",
|
||||
"pyinstaller==5.6.1",
|
||||
"pyinstaller==5.6.2",
|
||||
"pytest-asyncio>=0.17,<0.21",
|
||||
"pytest-cov>=2.7.1,<4.1",
|
||||
"pytest-timeout>=1.3.3,<2.2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue