From 1809461a07bdb4530529d44c668742b6e26aefa5 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 18 Aug 2026 11:59:51 +0200 Subject: [PATCH] Early filtering note --- RNS/Transport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RNS/Transport.py b/RNS/Transport.py index b7021b82..262080d8 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1644,6 +1644,10 @@ class Transport: RNS.log("Ignoring duplicate path request for "+RNS.prettyhexrep(destination_hash)+" with tag "+RNS.prettyhexrep(unique_tag), RNS.LOG_EXTREME) if RNS.sl(RNS.LOG_EXTREME) else None return + # TODO: Add early filtering here for non-transport nodes; there's no + # reason to process further if we know we don't have the destination + # locally on this system. Might need adding a local_client_dest_map. + if interface.should_ingress_limit_pr(): traffic_class = Transport.TC_INGRESS_LIMITED if not Transport.USE_INBOUND_QUEUE: return Transport._inbound(packet)