From c1e280d89693b161b7e893b7015d9c8ffe7aecd5 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 18 Sep 2021 18:54:57 +0200 Subject: [PATCH] Work on tunnels --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index f6b1fd5..d89dca9 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -982,7 +982,7 @@ class Transport: announces = [] tunnel_entry = [tunnel_id, interface, announces] interface.tunnel_id = tunnel_id - Transport.tunnels.append(tunnel_entry) + Transport.tunnels[tunnel_id] = tunnel_entry else: RNS.log("Tunnel endpoint "+RNS.prettyhexrep(tunnel_id)+" reappeared. Restoring paths...", RNS.LOG_DEBUG) tunnel_entry = Transport.tunnels[tunnel_id]