mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 14:36:34 -05:00
Catch announce unpack failure
This commit is contained in:
parent
41260ea163
commit
48ba76df9c
1 changed files with 3 additions and 1 deletions
|
|
@ -605,7 +605,9 @@ def analyze_tables(path_table=None, rate_table=None, link_distribution=None, cap
|
|||
announce_packet = RNS.Transport.get_cached_packet(announce_hash, packet_type="announce")
|
||||
if not announce_packet: unresolvable += 1; continue
|
||||
|
||||
announce_packet.unpack()
|
||||
try: announce_packet.unpack()
|
||||
except: unresolvable +=1; continue
|
||||
|
||||
keysize = RNS.Identity.KEYSIZE//8
|
||||
name_hash_len = RNS.Identity.NAME_HASH_LENGTH//8
|
||||
name_hash = announce_packet.data[keysize:keysize+name_hash_len]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue