aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/addons/wsgiapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/addons/wsgiapp.py')
-rw-r--r--mitmproxy/addons/wsgiapp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mitmproxy/addons/wsgiapp.py b/mitmproxy/addons/wsgiapp.py
index c37fcb7b..155444fc 100644
--- a/mitmproxy/addons/wsgiapp.py
+++ b/mitmproxy/addons/wsgiapp.py
@@ -13,6 +13,10 @@ class WSGIApp:
def __init__(self, app, host, port):
self.app, self.host, self.port = app, host, port
+ @property
+ def name(self):
+ return "wsgiapp:%s:%s" % (self.host, self.port)
+
def serve(self, app, flow):
"""
Serves app on flow, and prevents further handling of the flow.