mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-04 16:03:14 +02:00
mark invalid advertisement packets to prevent retransmission
This commit is contained in:
@@ -55,7 +55,8 @@ class AdvertHelper:
|
||||
|
||||
if not advert_data or not advert_data.get("valid"):
|
||||
logger.debug("Invalid advert packet")
|
||||
return
|
||||
packet.mark_do_not_retransmit()
|
||||
|
||||
|
||||
# Extract data from parsed advert
|
||||
pubkey = advert_data["public_key"]
|
||||
|
||||
Reference in New Issue
Block a user