[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [compass/master] Don't list a relay as Exit if it has the BadExit flag.
commit b2ce73eaef060f619666851dcddd65c8edd41941
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Wed Aug 29 14:50:09 2012 +0200
Don't list a relay as Exit if it has the BadExit flag.
---
compass.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/compass.py b/compass.py
index 9f2b340..428812f 100755
--- a/compass.py
+++ b/compass.py
@@ -247,7 +247,7 @@ class RelayStats(object):
group_weights = tuple(sum(x) for x in zip(group_weights, weights))
nickname = relay['nickname']
fingerprint = relay['fingerprint'] if not links else "https://atlas.torproject.org/#details/%s" % relay['fingerprint']
- if 'Exit' in set(relay['flags']):
+ if 'Exit' in set(relay['flags']) and not 'BadExit' in set(relay['flags']):
exit = 'Exit'
exits_in_group += 1
else:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits