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

[tor-commits] [bridgedb/master] 5482 - Write TOSA into bucket file output



commit c74d953465257e391fdab09847530d8f9b017578
Author: aagbsn <aagbsn@xxxxxxxx>
Date:   Tue Oct 30 03:34:35 2012 -0700

    5482 - Write TOSA into bucket file output
---
 lib/bridgedb/Bucket.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/bridgedb/Bucket.py b/lib/bridgedb/Bucket.py
index 004633b..7f2a7e7 100644
--- a/lib/bridgedb/Bucket.py
+++ b/lib/bridgedb/Bucket.py
@@ -208,6 +208,8 @@ class BucketManager:
             f = open(filename, 'w')
             for b in bridges:
                 line = "%s:%s" % (b.address, b.or_port)
+                bh = self.db.getBridgeHistory(b.hex_key)
+                if bh: line += "\n On address for %s" % bh.tosa
                 f.write(line + '\n')
             f.close()
         except IOError:



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