1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-24 10:50:35 -05:00

Added fix for an unknown packet type

If we get a packet that doesn't have a message in it, nor an ack,
we don't know what to do with it, so log it and then stop processing it.
This commit is contained in:
Hemna 2020-12-20 20:26:37 -05:00
parent e68d3f92e1
commit b2609548f2
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@ CHANGES
v1.1.0
------
* Added fix for an unknown packet type
* Ensure fortune is installed
* Updated docker-compose
* Added Changelog
@ -11,6 +12,7 @@ v1.1.0
* Updated the aprsd-slack-plugin required version
* Updated README.rst
* Fixed send-message with email command and others
* Update .gitignore
* Big patch
* Major refactor
* Updated the Dockerfile to use alpine

View File

@ -192,6 +192,10 @@ def process_packet(packet):
)
messaging.ack_dict.update({int(ack_num): 1})
return
else:
LOG.info("Don't know what to do with this message. Ignoring")
messaging.log_packet(packet)
return
msg_number = packet.get("msgNo", None)
if msg_number: