Fix missing proxy port when starting a browser. (#5687)

* Fix missing proxy port when starting a browser.

* Update CHANGELOG.md

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
This commit is contained in:
Brad Dixon 2022-10-28 05:44:33 -04:00 committed by GitHub
parent 2316ec9b43
commit 9a83d0e5df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@
([#5405](https://github.com/mitmproxy/mitmproxy/issues/5405), [#5686](https://github.com/mitmproxy/mitmproxy/issues/5686), @mhils)
* Fix mitmweb crash when using filters.
([#5658](https://github.com/mitmproxy/mitmproxy/issues/5658), [#5661](https://github.com/mitmproxy/mitmproxy/issues/5661), @LIU-shuyi, @mhils)
* Fix missing default port when starting a browser.
([#5687](https://github.com/mitmproxy/mitmproxy/issues/5687), @rbdixon)
* Add docs for transparent mode on Windows.
([#5402](https://github.com/mitmproxy/mitmproxy/issues/5402), @stephenspol)

View File

@ -85,7 +85,7 @@ class Browser:
*cmd,
"--user-data-dir=%s" % str(tdir.name),
"--proxy-server={}:{}".format(
ctx.options.listen_host or "127.0.0.1", ctx.options.listen_port
ctx.options.listen_host or "127.0.0.1", ctx.options.listen_port or "8080"
),
"--disable-fre",
"--no-default-browser-check",