[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionperf/master] Fix matching of tor_circuit ids
commit 26ff79a3e57f1dfb0c961cceb167534bb39d17f3
Author: Ana Custura <ana@xxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits