From 3fdfe93ec744d0cd5026c4096bca3c1092777608 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 24 Aug 2026 01:26:24 +0200 Subject: [PATCH] Don't loop on attached interface packets --- RNS/Transport.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 279814f7..333dd7c1 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1431,8 +1431,11 @@ class Transport: # interface, or belongs to a link. else: stored_hash = False - for interface in Transport.interfaces: - if interface.OUT: + if packet.attached_interface: potential_interfaces = [packet.attached_interface] + else: potential_interfaces = Transport.interfaces + + for interface in potential_interfaces: + if interface.OUT and interface.online: should_transmit = True if packet.destination.type == RNS.Destination.LINK: