mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +00:00
Drop NodeInfo packets if the is_licensed bit doesn't match owner
This commit is contained in:
parent
39716ed1ba
commit
9a3931d53e
@ -14,6 +14,11 @@ bool NodeInfoModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, mes
|
|||||||
{
|
{
|
||||||
auto p = *pptr;
|
auto p = *pptr;
|
||||||
|
|
||||||
|
if (p.is_licensed != owner.is_licensed) {
|
||||||
|
LOG_WARN("Invalid nodeInfo detected, is_licensed mismatch!");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Coerce user.id to be derived from the node number
|
// Coerce user.id to be derived from the node number
|
||||||
snprintf(p.id, sizeof(p.id), "!%08x", getFrom(&mp));
|
snprintf(p.id, sizeof(p.id), "!%08x", getFrom(&mp));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user