mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-16 16:41:33 +10:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user