aboutsummaryrefslogtreecommitdiff
path: root/dummyserver/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'dummyserver/handlers.py')
-rw-r--r--dummyserver/handlers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py
index bc51f31..5d6e2e6 100644
--- a/dummyserver/handlers.py
+++ b/dummyserver/handlers.py
@@ -70,6 +70,10 @@ class TestingApp(WSGIHandler):
"Render simple message"
return Response("Dummy server!")
+ def source_address(self, request):
+ """Return the requester's IP address."""
+ return Response(request.remote_ip)
+
def set_up(self, request):
test_type = request.params.get('test_type')
test_id = request.params.get('test_id')