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

[or-cvs] [torflow/master 19/92] Previous address shortening scheme sometimes put different sites in the same file.



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Sat, 10 Jul 2010 17:03:30 -0400
Subject: Previous address shortening scheme sometimes put different sites in the same file.
Commit: 1713a1b5ef48e4e6e0880fded11c62c68d518fbe

---
 NetworkScanners/ExitAuthority/soat.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index f649294..a7b0271 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -1852,7 +1852,8 @@ class SSLTest(SearchBasedTest):
     plog('INFO', 'Conducting an ssl test with destination ' + address)
 
     # an address representation acceptable for a filename 
-    address_file = DataHandler.safeFilename(address[8:])
+    shortaddr = address[:min(len(address), 16)]
+    address_file = DataHandler.safeFilename(shortaddr)
     ssl_file_name = ssl_certs_dir + address_file + '.ssl'
 
     # load the original cert and compare
-- 
1.7.1