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
@ -82,7 +82,10 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
|
||||
return NULL;
|
||||
} else {
|
||||
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
|
||||
if (u.is_licensed && u.public_key.size > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user