suppress duplicate packets in processing logic

This commit is contained in:
Lloyd
2026-01-12 16:23:11 +00:00
parent 1999af8bdd
commit d671c58184

View File

@@ -541,10 +541,17 @@ class RepeaterHandler(BaseHandler):
packet.drop_reason = "Direct: not for us"
return None
# Suppress duplicates
if self.is_duplicate(packet):
packet.drop_reason = "Duplicate"
return None
original_path = list(packet.path)
packet.path = bytearray(packet.path[1:])
packet.path_len = len(packet.path)
self.mark_seen(packet)
return packet
@staticmethod