diff MoinMoin/support/werkzeug/serving.py @ 6132:df65dcf7daea

upgrade werkzeug to 0.12.2
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 17:49:42 +0200
parents 7f12cf241d5e
children
line wrap: on
line diff
--- a/MoinMoin/support/werkzeug/serving.py	Thu Jun 01 17:40:41 2017 +0200
+++ b/MoinMoin/support/werkzeug/serving.py	Thu Jun 01 17:49:42 2017 +0200
@@ -279,7 +279,10 @@
         return BaseHTTPRequestHandler.version_string(self).strip()
 
     def address_string(self):
-        return self.client_address[0]
+        if getattr(self, 'environ', None):
+            return self.environ['REMOTE_ADDR']
+        else:
+            return self.client_address[0]
 
     def port_integer(self):
         return self.client_address[1]