mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-26 23:59:34 -05:00
Updated packet proof logic
This commit is contained in:
parent
f6cc9fd1cf
commit
2b3fa796a1
@ -980,6 +980,7 @@ class LXMRouter:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def delivery_packet(self, data, packet):
|
def delivery_packet(self, data, packet):
|
||||||
|
packet.prove()
|
||||||
try:
|
try:
|
||||||
if packet.destination_type != RNS.Destination.LINK:
|
if packet.destination_type != RNS.Destination.LINK:
|
||||||
lxmf_data = b""
|
lxmf_data = b""
|
||||||
@ -998,7 +999,6 @@ class LXMRouter:
|
|||||||
|
|
||||||
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
|
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
|
||||||
|
|
||||||
packet.prove()
|
|
||||||
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
|
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user