Licensed channel defaults, phone map growth, and payload read bounds (#11286)

* Strip the default PSK when licensed defaults are installed

* Only record rate-limited portnums from the phone

* Bound payload reads by the received size
This commit is contained in:
Thomas Göttgens
2026-07-29 22:29:12 +00:00
committed by GitHub
parent df6e67f70b
commit daf1213580
4 changed files with 23 additions and 6 deletions
+4
View File
@@ -741,6 +741,10 @@ void NodeDB::resetRadioConfig(bool is_fresh_install)
LOG_INFO("Set default channel and radio preferences!");
channels.initDefaults();
// Defaults ship the public PSK, so strip it again before onConfigChanged() publishes hashes;
// loadFromDisk's sanitation is a no-op when the channel file was absent or corrupt.
if (owner.is_licensed)
channels.ensureLicensedOperation();
}
channels.onConfigChanged();