[or-cvs] [torflow/master 01/92] Fixed idhex filter in snakeinspector

mikeperry at torproject.org mikeperry at torproject.org
Sat Aug 21 05:13:57 UTC 2010


Author: John M. Schanck <john at anomos.info>
Date: Tue, 8 Jun 2010 00:43:53 -0400
Subject: Fixed idhex filter in snakeinspector
Commit: 7d40d38be81c95a6b9e11033cd34cfb2e8e6d942

---
 NetworkScanners/ExitAuthority/snakeinspector.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/snakeinspector.py b/NetworkScanners/ExitAuthority/snakeinspector.py
index 157faa2..e31d7f4 100755
--- a/NetworkScanners/ExitAuthority/snakeinspector.py
+++ b/NetworkScanners/ExitAuthority/snakeinspector.py
@@ -47,7 +47,7 @@ def usage(argv):
 
 def getargs(argv):
   try:
-    opts,args = getopt.getopt(argv[1:],"d:f:e:r:vt:p:s:o:n:a:b:Fmc",
+    opts,args = getopt.getopt(argv[1:],"d:f:e:x:r:vt:p:s:o:n:a:b:Fmc",
              ["dir=", "file=", "exit=", "reason=", "resultfilter=", "proto=",
               "verbose", "statuscode=", "sortby=", "noreason=", "after=",
               "before=", "falsepositives", "email", "confirmed"])
@@ -75,6 +75,8 @@ def getargs(argv):
       use_dir = a
     elif o == '-e' or o == '--email':
       send_email = True
+    elif o == '-x' or o == '--exit':
+      node = a
     elif o == '-f' or o == '--file':
       use_file = a
     elif o == '-b' or o == '--before':
@@ -139,7 +141,7 @@ def main(argv):
   if use_file:
     results = [dh.getResult(use_file)]
   elif node:
-    results = dh.filterByNode(dh.getAll(), "$"+node)
+    results = dh.filterByNode(dh.getAll(), node)
   else:
     results = dh.getAll()
 
-- 
1.7.1




More information about the tor-commits mailing list