[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Log whether a Bridge is attempting to answer a request for IPv6 or IPv4.



commit 0449560f737fb71fb2fafe8691f018dc9cc6d362
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Mon Mar 23 00:40:21 2015 +0000

    Log whether a Bridge is attempting to answer a request for IPv6 or IPv4.
---
 lib/bridgedb/bridges.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/bridgedb/bridges.py b/lib/bridgedb/bridges.py
index b791730..96f995e 100644
--- a/lib/bridgedb/bridges.py
+++ b/lib/bridgedb/bridges.py
@@ -1038,7 +1038,9 @@ class Bridge(BridgeBackwardsCompatibility):
             return a :term:`Bridge Line` for the requested pluggable transport
             type.
         """
-        logging.info("Bridge %s answering request for vanilla address..." % self)
+        logging.info(
+            "Bridge %s answering request for IPv%s vanilla address..." %
+            (self, "6" if bridgeRequest.addressClass is ipaddr.IPv6Address else "4"))
 
         if not bridgeRequest.filters:
             logging.debug(("Request %s didn't have any filters; "



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits