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

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



commit 475d711fa130889fabd76a8440bed3f398dd22f3
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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



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