Early filtering note

This commit is contained in:
Mark Qvist 2026-08-18 11:59:51 +02:00
parent 01a78bee2a
commit 1809461a07
No known key found for this signature in database

View file

@ -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)