Work on tunnels

This commit is contained in:
Mark Qvist 2021-09-18 19:12:09 +02:00
parent 80455c9614
commit 1cb9df109a
1 changed files with 3 additions and 3 deletions

View File

@ -788,10 +788,10 @@ class Transport:
# If the receiving interface is a tunnel, we add the
# announce to the tunnels table
if hasattr(packet.receiving_interface, "tunnel_id") and packet.receiving_interface.tunnel_id != None:
tunnel_entry = Transport.tunnels[packet.receiving_interface.tunnel_id]
paths = tunnel_entry[2]
paths[packet.destination_hash] = destination_table_entry
RNS.log("Path to "+RNS.prettyhexrep(packet.destination_hash)+" associated with tunnel "+RNS.prettyhexrep(packet.receiving_interface.tunnel_id), RNS.LOG_VERBOSE)
tunnel_entry = Transport.tunnels[packet.receiving_interface.tunnel_id]
#paths = tunnel_entry[2]
#paths[packet.destination_hash] = destination_table_entry
# Call externally registered callbacks from apps
# wanting to know when an announce arrives