]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Do not use x-server-ip.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 22 Dec 2011 02:58:24 +0000 (21:58 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 22 Dec 2011 02:58:24 +0000 (21:58 -0500)
xonstat/views/submission.py

index 4d969b8395028498154ef19e3231a4d4c582574f..66dcd1107dc8ca57a30d683ea7eaa616680f85aa 100755 (executable)
@@ -15,9 +15,7 @@ log = logging.getLogger(__name__)
 \r
 def get_remote_addr(request):\r
     """Get the Xonotic server's IP address"""\r
-    if 'X-Server-IP' in request.headers:\r
-        return request.headers['X-Server-IP']\r
-    elif 'X-Forwarded-For' in request.headers:\r
+    if 'X-Forwarded-For' in request.headers:\r
         return request.headers['X-Forwarded-For']\r
     else:\r
         return request.remote_addr\r