[or-cvs] r14835: Actually use arguments that are passed into the function. (check/trunk/cgi-bin)

ioerror at seul.org ioerror at seul.org
Fri May 30 00:15:36 UTC 2008


Author: ioerror
Date: 2008-05-29 20:15:36 -0400 (Thu, 29 May 2008)
New Revision: 14835

Modified:
   check/trunk/cgi-bin/TorBulkExitList.py
Log:
Actually use arguments that are passed into the function.


Modified: check/trunk/cgi-bin/TorBulkExitList.py
===================================================================
--- check/trunk/cgi-bin/TorBulkExitList.py	2008-05-29 20:33:43 UTC (rev 14834)
+++ check/trunk/cgi-bin/TorBulkExitList.py	2008-05-30 00:15:36 UTC (rev 14835)
@@ -141,17 +141,20 @@
     splitIp.reverse()
     ELExitNode = ".".join(splitIp)
 
-    # We'll attempt to reach this port on the Target host
-    ELPort = "80"
 
-    # We'll try to reach this host
-    ElTarget = "217.247.237.209"
+    if ELPort is None:
+        # We'll attempt to reach this port on the Target host
+        ElPort = "80"
 
+    if ELTarget is None:
+        # We'll try to reach this host
+        ELTarget = "217.247.237.209"
+
     # This is the ExitList DNS server we want to query
     ELHost = "ip-port.exitlist.torproject.org"
 
     # Prepare the question as an A record request
-    ELQuestion = ELExitNode + "." + ELPort + "." + ElTarget + "." + ELHost
+    ELQuestion = ELExitNode + "." + ELPort + "." + ELTarget + "." + ELHost
     print("Attempting to ask: %s" % ELQuestion)
     request = DNS.DnsRequest(name=ELQuestion,qtype='A')
     print("Asked: %s" % ELQuestion)



More information about the tor-commits mailing list