[or-cvs] [torflow/master 26/92] Better ssl cert filename scheme
mikeperry at torproject.org
mikeperry at torproject.org
Sat Aug 21 05:13:59 UTC 2010
Author: John M. Schanck <john at anomos.info>
Date: Tue, 13 Jul 2010 22:43:36 -0400
Subject: Better ssl cert filename scheme
Commit: a9ae4f60012095fe412c446c739e387570eef89a
---
NetworkScanners/ExitAuthority/soat.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index d6cbce2..b2dfa0a 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -1684,8 +1684,8 @@ class BaseSSLTest(Test):
''' check whether an https connection to a given address is molested '''
plog('INFO', 'Conducting an ssl test with destination ' + address)
- # an address representation acceptable for a filename
- shortaddr = address[:min(len(address), 16)]
+ # an address representation acceptable for a filename (first 20 chars excluding www.)
+ shortaddr = address.lstrip('www.')[:min(len(address), 20)]
address_file = DataHandler.safeFilename(shortaddr)
ssl_file_name = ssl_certs_dir + address_file + '.ssl'
--
1.7.1
More information about the tor-commits
mailing list