[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Fix bug in gen_bridge_descriptors which left spaces in an OR fingerprint.
commit 3a33c3ac35739cbc8a72e1038c7185406a3b672f
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Nov 5 08:49:51 2013 +0000
Fix bug in gen_bridge_descriptors which left spaces in an OR fingerprint.
* FIX the first line of an OR extra-info document, the fingerprint was being
written without the extra spaces removed.
---
scripts/gen_bridge_descriptors | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/gen_bridge_descriptors b/scripts/gen_bridge_descriptors
index 7050647..d9805d3 100644
--- a/scripts/gen_bridge_descriptors
+++ b/scripts/gen_bridge_descriptors
@@ -571,7 +571,7 @@ def generateExtraInfo(fingerprint, ts, ipv4, port):
:returns: An extra-info document (unsigned).
"""
extra = []
- extra.append("extra-info Unnamed %s" % fingerprint)
+ extra.append("extra-info Unnamed %s" % fingerprint.replace(' ', ''))
extra.append("published %s" % ts)
extra.append("write-history %s (900 s)\n3188736,2226176,2866176" % ts)
extra.append("read-history %s (900 s)\n3891200,2483200,2698240" % ts)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits