[or-cvs] r19608: {check} It's often the single byte changes that matter. This one clo (check/trunk/cgi-bin)

ioerror at seul.org ioerror at seul.org
Mon Jun 1 21:21:29 UTC 2009


Author: ioerror
Date: 2009-06-01 17:21:29 -0400 (Mon, 01 Jun 2009)
New Revision: 19608

Modified:
   check/trunk/cgi-bin/TorCheck.py
Log:
It's often the single byte changes that matter. This one closes bug 994. We should now properly detect clients that exit on nodes with exit policies allowing port 80, port 443 or only one of the two.


Modified: check/trunk/cgi-bin/TorCheck.py
===================================================================
--- check/trunk/cgi-bin/TorCheck.py	2009-06-01 15:16:56 UTC (rev 19607)
+++ check/trunk/cgi-bin/TorCheck.py	2009-06-01 21:21:29 UTC (rev 19608)
@@ -164,7 +164,7 @@
     # Make a DNS request to the EL and decide what to tell the user
     UsingTor = isUsingTor(req.connection.remote_ip, "80")
     # Try to hit a cornercase where the user can exit to 443 but not 80
-    if UsingTor == 0:
+    if UsingTor != 0:
         UsingTor = isUsingTor(req.connection.remote_ip, "443")
 
     req.send_http_header()



More information about the tor-commits mailing list