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

[tor-commits] [onionperf/master] Prevent incorrectly keeping transfers for empty incl./excl. lists



commit efe2ef11eb91e803e44229f5ede0209ead0aae21
Author: Ana Custura <ana@xxxxxxxxxxxxxx>
Date:   Sat Aug 29 14:18:01 2020 +0100

    Prevent incorrectly keeping transfers for empty incl./excl. lists
---
 onionperf/filtering.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/onionperf/filtering.py b/onionperf/filtering.py
index b431eb9..9e7b34f 100644
--- a/onionperf/filtering.py
+++ b/onionperf/filtering.py
@@ -79,10 +79,10 @@ class Filtering(object):
                         fingerprint_match = self.fingerprint_pattern.match(long_name)
                         if fingerprint_match:
                             fingerprint = fingerprint_match.group(1).upper()
-                            if self.fingerprints_to_include and fingerprint not in self.fingerprints_to_include:
+                            if self.fingerprints_to_include is not None and fingerprint not in self.fingerprints_to_include:
                                 keep = False
                                 break
-                            if self.fingerprints_to_exclude and fingerprint in self.fingerprints_to_exclude:
+                            if self.fingerprints_to_exclude is not None and fingerprint in self.fingerprints_to_exclude:
                                 keep = False
                                 break
                 if keep:



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