[tor-commits] [bridgedb/master] Make log message for strange X-Forward-For headers clearer.

isis at torproject.org isis at torproject.org
Tue Feb 4 00:28:47 UTC 2014


commit 3f9a5344ec553a14db1e66ac9a95208bee1d3fa5
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Jan 25 18:18:10 2014 +0000

    Make log message for strange X-Forward-For headers clearer.
---
 lib/bridgedb/HTTPServer.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index eac1fb9..6892f12 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -82,7 +82,7 @@ class CaptchaProtectedResource(twisted.web.resource.Resource):
             if h:
                 ip = h.split(",")[-1].strip()
                 if not bridgedb.Bridges.is_valid_ip(ip):
-                    logging.warn("Got weird forwarded-for value %r",h)
+                    logging.warn("Got weird X-Forwarded-For value %r" % h)
                     ip = None
         else:
             ip = request.getClientIP()





More information about the tor-commits mailing list