Merge pull request #863 from liamcottle/fix/repeater-login

Fix: repeater login
This commit is contained in:
ripplebiz 2025-09-29 21:38:54 +10:00 committed by GitHub
commit 219297172a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -405,6 +405,7 @@ void MyMesh::onAnonDataRecv(mesh::Packet *packet, const uint8_t *secret, const m
uint32_t timestamp;
memcpy(&timestamp, data, 4);
data[len] = 0; // ensure null terminator
uint8_t reply_len = handleLoginReq(sender, secret, timestamp, &data[4]);
if (reply_len == 0) return; // invalid request