* NEW: simple_room_server

This commit is contained in:
Scott Powell
2025-01-23 16:07:44 +11:00
parent f5f978a398
commit b8a5c3369f
3 changed files with 646 additions and 1 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ protected:
uint32_t timestamp;
memcpy(&timestamp, data, 4);
if (memcmp(&data[4], ADMIN_PASSWORD, 8) == 0) { // check for valid password
if (memcmp(&data[4], ADMIN_PASSWORD, strlen(ADMIN_PASSWORD)) == 0) { // check for valid password
auto client = putClient(sender); // add to known clients (if not already known)
if (client == NULL || timestamp <= client->last_timestamp) {
MESH_DEBUG_PRINTLN("Client table full, or replay attack!");