aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2020-04-29 11:22:54 +0200
committerGitHub <noreply@github.com>2020-04-29 11:22:54 +0200
commitefcd73aecbdf3d4c74e5949e8a46699e237bf778 (patch)
tree801704a79eec921c703ecf3f19d7873a5fcfae98
parent433c588c4cfc20e181b2e865814a350dd7fd9f06 (diff)
parent5beeeae81dde9fd1d5cff1a933268ef2bb94d494 (diff)
downloadmitmproxy-efcd73aecbdf3d4c74e5949e8a46699e237bf778.tar.gz
mitmproxy-efcd73aecbdf3d4c74e5949e8a46699e237bf778.tar.bz2
mitmproxy-efcd73aecbdf3d4c74e5949e8a46699e237bf778.zip
Merge pull request #3963 from senyuuri/fix_wsgi_example
Improve compatibility of wsgi_flask_app example on OS X
-rw-r--r--examples/simple/wsgi_flask_app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple/wsgi_flask_app.py b/examples/simple/wsgi_flask_app.py
index bbde6913..b34fbc83 100644
--- a/examples/simple/wsgi_flask_app.py
+++ b/examples/simple/wsgi_flask_app.py
@@ -15,9 +15,9 @@ def hello_world() -> str:
addons = [
- # Host app at the magic domain "proxapp.local" on port 80. Requests to this
+ # Host app at the magic domain "example.com" on port 80. Requests to this
# domain and port combination will now be routed to the WSGI app instance.
- wsgiapp.WSGIApp(app, "proxapp.local", 80)
+ wsgiapp.WSGIApp(app, "example.com", 80)
# SSL works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.
# mitmproxy will connect to said domain and use serve its certificate (unless --no-upstream-cert is set)
# but won't send any data.