[tor-commits] [bridgedb/master] Strip '='s from "descDigest" field in gen_bridge_descriptors.

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:33 UTC 2014


commit 475d711fa130889fabd76a8440bed3f398dd22f3
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Dec 11 01:54:05 2013 +0000

    Strip '='s from "descDigest" field in gen_bridge_descriptors.
---
 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 dae1561..362ed3d 100644
--- a/scripts/gen_bridge_descriptors
+++ b/scripts/gen_bridge_descriptors
@@ -625,7 +625,7 @@ def generateNetstatus(idkey_digest, server_desc_digest, timestamp,
     idkey_b64  = binascii.b2a_base64(idkey_digest)
     idb64      = str(idkey_b64).strip().rstrip('==')
     server_b64 = binascii.b2a_base64(server_desc_digest)
-    srvb64     = str(server_b64).strip()
+    srvb64     = str(server_b64).strip().rstrip('==')
 
     if bandwidth_line is not None:
         bw = int(bandwidth_line.split()[-1]) / 1024  # The 'observed' value





More information about the tor-commits mailing list