Commit Graph

2700 Commits

Author SHA1 Message Date
Maximilian Hils e0e46f453c
re-use SNI in reverse proxy mode if the original connection was torn down (#6148)
fix #6143
2023-05-28 16:35:34 +00:00
Maximilian Hils 8757757892
improve ux when errors are logged during startup, fix #5935 (#6020) 2023-03-26 18:14:57 +00:00
Maximilian Hils 555a2d2199
disallow bare except statements (#6017) 2023-03-26 13:57:48 +00:00
Alex Gershberg 8f13293771
Add prettier to mitmweb (#5985)
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-03-12 17:50:15 +01:00
Maximilian Hils ed740e72bf fix Python 3.10 compat 2023-03-05 23:33:03 +01:00
Maximilian Hils f9d808562d add option to disable HTTP/3 2023-03-05 19:55:24 +01:00
Maximilian Hils edb85d4af1 refactor NextLayer addon 2023-03-05 19:55:24 +01:00
Maximilian Hils 524adbf950 Revert "add MaybeClientTLSLayer"
This reverts commit e7b0e3f351686c2ef5f1daa13365216b775eefb3.
2023-03-05 19:55:24 +01:00
Maximilian Hils 0583e8e46c add MaybeClientTLSLayer 2023-03-05 19:55:24 +01:00
Maximilian Hils 262cadab75 is_[d]tls_record -> starts_like_[d]tls_record 2023-03-05 19:55:24 +01:00
autofix-ci[bot] 51670861e6 [autofix.ci] apply automated fixes 2023-02-27 08:37:11 +01:00
WenzelTian 5259d1e31a
add the architecture determination when running the wireguard test (#5953) 2023-02-26 15:25:10 +01:00
Maximilian Hils 244ff35e60
fix usage of `asyncio.create_task` (#5928)
this fixes #5926
2023-02-13 21:45:02 +00:00
Pradyot Ranjan 41555edab9
Reformatted list (#5919)
* Reformatted list

* [autofix.ci] apply automated fixes

* Reformatted list

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-02-09 11:38:27 +01:00
Maximilian Hils 7da3a8e871
treat multipart as bytes, not str. fixes #5148 (#5917) 2023-02-07 10:29:08 +00:00
Sujal Singh b9f3574728
fix `Host` and `:authority` header not being updated on changes to host or port (#5908)
* fix map remote addon not setting `Host` header correctly

* fix failing tests

* fix coverage

* fix host and authority headers

* raise error when port is not of type int

* fix nits

* [autofix.ci] apply automated fixes

* coverage++

---------

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-02-06 17:35:16 +01:00
Maximilian Hils 54185c2c8d
Add experimental Windows OS proxy mode (#5912)
* add experimental Windows OS proxy mode

this is merely a proof-of-concept now, but works under the most ideal circumstances.
2023-02-06 17:34:48 +01:00
dependabot[bot] dfeddcf4ad
Bump install-pinned/black from 9101a4d68e870eaaaae21c412d1d879b93c9afcb to 13c8a20eb904ba800c87f0b34ccfd932ac2ff81d (#5899)
* Bump install-pinned/black

Bumps [install-pinned/black](https://github.com/install-pinned/black) from 9101a4d68e870eaaaae21c412d1d879b93c9afcb to 13c8a20eb904ba800c87f0b34ccfd932ac2ff81d.
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](9101a4d68e...13c8a20eb9)

---
updated-dependencies:
- dependency-name: install-pinned/black
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* [autofix.ci] apply automated fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-02-01 23:08:09 +00:00
Sujal Singh 89d688e9fc
temporary fix for unhandled AlternativeServiceAvailable event (#5898)
* temporary fix for unhandled AlternativeServiceAvailable event

* [autofix.ci] apply automated fixes

* better log message for AlternativeServiceAvailable service

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-02-01 18:05:09 +01:00
stephenspol 849a3c33cb
Removed escaping string to get real raw view (#5894)
* Removed escaping string to get real raw view

* [autofix.ci] apply automated fixes

* Updated changelog

* extend tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2023-01-29 10:56:39 +00:00
Bernhard M. Wiedemann d06afcc1f9
Fix tests after 2037 (#5852)
Background:
As part of my work on reproducible builds for openSUSE, I check that software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
2023-01-06 22:37:55 +01:00
Igor Talankin 385633874c
Added a command for appending flows to server replay list (#5851)
* Added a command to append flows to replay server list

* Added changelog entry for `replay.server.add`

* Update CHANGELOG.md

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
2023-01-06 15:49:54 +00:00
autofix-ci[bot] 8c2428c9d3
[autofix.ci] apply automated fixes 2022-11-29 13:28:41 +00:00
Maximilian Hils 8361c81cdf add autofix.ci 2022-11-29 14:27:35 +01:00
Maximilian Hils 9a41fe08eb display quic as such in the ui 2022-11-28 18:51:23 +01:00
Maximilian Hils 5ec4bbf496 don't persist connection state, fix #5524 2022-11-28 18:18:49 +01:00
Manuel Meitinger 5d0947acb7 [quic] 100% H3 coverage 2022-11-27 06:01:04 +01:00
Manuel Meitinger 8bd88541f6 [quic] H3 stream reset refinements 2022-11-27 04:17:57 +01:00
Manuel Meitinger f23a1887bb [quic] fix h3 double-close issue 2022-11-24 22:18:07 +01:00
Manuel Meitinger d4e8b05619 [quic] more h3 tests and fixes 2022-11-24 20:07:15 +01:00
Manuel Meitinger 6360f388df [quic] dataclass changes 2022-11-24 11:19:48 +01:00
Manuel Meitinger 7285c250ff [quic] more h3 tests and http1 stream_id fix 2022-11-24 04:01:59 +01:00
Manuel Meitinger f7bf1c44b6 Merge remote-tracking branch 'upstream/main' into quic 2022-11-23 22:14:03 +01:00
Maximilian Hils 07a40208a3 `rm -rf stateobject` 2022-11-22 01:09:33 +01:00
Maximilian Hils cb2eade466 fix Python 3.9 compatibility 2022-11-21 03:09:51 +01:00
Maximilian Hils c1d0385782 tests++ 2022-11-21 02:48:21 +01:00
Maximilian Hils 6b71066141 cleanup `mitmproxy.connection`, introduce dataclass-based serialization 2022-11-21 01:27:31 +01:00
Manuel Meitinger 75504e38a2 Merge remote-tracking branch 'upstream/main' into quic 2022-11-18 21:44:18 +01:00
Maximilian Hils d5f1d1c623
Improve error message for missing packages in frozen binaries (#5740) 2022-11-18 09:42:48 +00:00
Aldo Cortesi 0bbb0215c1
more mypy (#5724)
Co-authored-by: requires.io <support@requires.io>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2022-11-13 18:04:34 +00:00
Manuel Meitinger fcee888f35 [quic] regular proxy test 2022-11-10 23:24:36 +01:00
Manuel Meitinger 5aa6c9b9f9 [quic] minor improvements 2022-11-08 22:08:12 +01:00
Manuel Meitinger 2bda324d94 [quic] improve and fix tests 2022-11-08 07:51:25 +01:00
Manuel Meitinger e1d5f4b838 [quic] replace get_event_loop 2022-11-08 07:06:01 +01:00
Manuel Meitinger 64fa241825 [quic] datagram test 2022-11-08 06:34:34 +01:00
Manuel Meitinger 6cf2a1202a [quic] full-stack test 2022-11-08 05:38:59 +01:00
Manuel Meitinger 97ca30ce6f [quic] fix next layer handling 2022-11-07 03:49:32 +01:00
Manuel Meitinger 201f03082a [quic] more h3 tests 2022-11-07 01:22:59 +01:00
Manuel Meitinger a308d3dabc [quic] first test for H3 2022-11-06 18:42:30 +01:00
Manuel Meitinger 78c1a23bf3 [quic] better chain file handling 2022-11-01 22:28:40 +01:00