mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Additionally null it out on send
This commit is contained in:
parent
065bedceb4
commit
22a2d68723
@ -81,8 +81,11 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
|
|||||||
ignoreRequest = true; // Mark it as ignored for MeshModule
|
ignoreRequest = true; // Mark it as ignored for MeshModule
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
ignoreRequest = false; // Don't ignore requests anymore
|
ignoreRequest = false; // Don't ignore requests anymore
|
||||||
meshtastic_User &u = owner;
|
meshtastic_User u = owner; // Create a copy to avoid modifying the global owner
|
||||||
|
|
||||||
|
// Null out user.id on transmit
|
||||||
|
u.id[0] = 0;
|
||||||
|
|
||||||
// Strip the public key if the user is licensed
|
// Strip the public key if the user is licensed
|
||||||
if (u.is_licensed && u.public_key.size > 0) {
|
if (u.is_licensed && u.public_key.size > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user