[tor-commits] [bridgedb/master] 5482 - Write TOSA into bucket file output
aagbsn at torproject.org
aagbsn at torproject.org
Wed Apr 17 00:26:44 UTC 2013
commit c74d953465257e391fdab09847530d8f9b017578
Author: aagbsn <aagbsn at extc.org>
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:
More information about the tor-commits
mailing list