[tor-commits] [onionperf/master] Prevent incorrectly keeping transfers for empty incl./excl. lists
karsten at torproject.org
karsten at torproject.org
Fri Sep 18 08:29:49 UTC 2020
commit efe2ef11eb91e803e44229f5ede0209ead0aae21
Author: Ana Custura <ana at netstat.org.uk>
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:
More information about the tor-commits
mailing list