[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 15fd1870a94cc8203c30ff1a7480b10fc20d43bf
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits