[tor-commits] [metrics-tasks/master] Bad exits are no exits (#6232).

karsten at torproject.org karsten at torproject.org
Tue Jul 24 10:11:21 UTC 2012


commit 15fd1870a94cc8203c30ff1a7480b10fc20d43bf
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Jul 24 09:42:57 2012 +0200

    Bad exits are no exits (#6232).
---
 task-6232/pyentropy.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/task-6232/pyentropy.py b/task-6232/pyentropy.py
index 99d83da..08e0218 100644
--- a/task-6232/pyentropy.py
+++ b/task-6232/pyentropy.py
@@ -50,7 +50,7 @@ class Router:
                self.bandwidth = int(values[0].split('=')[1])
 
     def add_flags(self, values):
-           if "Exit" in values:
+           if "Exit" in values and not "BadExit" in values:
                self.is_exit = True
            if "Guard" in values:
                self.is_guard = True





More information about the tor-commits mailing list