Skip to content

Commit

Permalink
fix: don't broadcast public keys if the user is licensed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Oct 29, 2024
1 parent b3ba23b commit c61bdc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/NodeInfoModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
ignoreRequest = false; // Don't ignore requests anymore
meshtastic_User &u = owner;

// Strip the public key if the user is licensed
if (u.is_licensed && !u.public_key.empty()) {
u.public_key.clear();
}

LOG_INFO("sending owner %s/%s/%s", u.id, u.long_name, u.short_name);
lastSentToMesh = millis();
return allocDataProtobuf(u);
Expand Down

0 comments on commit c61bdc8

Please sign in to comment.