[tor-commits] [compass/master] Don't list a relay as Exit if it has the BadExit flag.

gsathya at torproject.org gsathya at torproject.org
Wed Aug 29 19:00:37 UTC 2012


commit b2ce73eaef060f619666851dcddd65c8edd41941
Author: Karsten Loesing <karsten.loesing at gmx.net>
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:



More information about the tor-commits mailing list