[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [torflow/master 50/92] Added BadExit to forbidden flags in get_nodes_by_port
Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Sat, 31 Jul 2010 18:03:01 -0400
Subject: Added BadExit to forbidden flags in get_nodes_by_port
Commit: 463f5ec85725da84ef381c2fd3d5e7aaccc1cec5
---
NetworkScanners/ExitAuthority/soat.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/NetworkScanners/ExitAuthority/soat.py b/NetworkScanners/ExitAuthority/soat.py
index 457e136..b3cb010 100755
--- a/NetworkScanners/ExitAuthority/soat.py
+++ b/NetworkScanners/ExitAuthority/soat.py
@@ -212,8 +212,10 @@ class ExitScanHandler(ScanSupport.ScanHandler):
cond = threading.Condition()
def notlambda(this):
cond.acquire()
- restriction = NodeRestrictionList([FlagsRestriction(["Running", "Valid",
-"Fast"]), MinBWRestriction(min_node_bw), ExitPolicyRestriction('255.255.255.255', port)])
+ restriction = NodeRestrictionList(\
+ [FlagsRestriction(["Running", "Valid", "Fast"], ["BadExit"]),
+ MinBWRestriction(min_node_bw),
+ ExitPolicyRestriction('255.255.255.255', port)])
cond._result = [x for x in self.sorted_r if restriction.r_is_ok(x)]
self._sanity_check(cond._result)
cond.notify()
--
1.7.1