[tor-commits] [onionperf/develop] Fix matching of tor_circuit ids
karsten at torproject.org
karsten at torproject.org
Wed Sep 16 15:15:08 UTC 2020
commit 26ff79a3e57f1dfb0c961cceb167534bb39d17f3
Author: Ana Custura <ana at netstat.org.uk>
Date: Fri Aug 21 02:14:32 2020 +0100
Fix matching of tor_circuit ids
---
onionperf/filtering.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/onionperf/filtering.py b/onionperf/filtering.py
index 435a1bc..204b161 100644
--- a/onionperf/filtering.py
+++ b/onionperf/filtering.py
@@ -73,7 +73,7 @@ class Filtering(object):
for tor_stream in tor_streams_by_source_port[source_port]:
if abs(unix_ts_end - tor_stream["unix_ts_end"]) < 150.0:
circuit_id = tor_stream["circuit_id"]
- if circuit_id and circuit_id in tor_circuits:
+ if circuit_id and str(circuit_id) in tor_circuits:
tor_circuit = tor_circuits[circuit_id]
path = tor_circuit["path"]
keep = True
More information about the tor-commits
mailing list