Browse Source

Merge cb521b4444 into 5f3b7f25d0

pull/2437/merge
hank 1 day ago
committed by GitHub
parent
commit
a88bea258c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      examples/simple_repeater/MyMesh.cpp

2
examples/simple_repeater/MyMesh.cpp

@ -89,7 +89,7 @@ void MyMesh::putNeighbour(const mesh::Identity &id, uint32_t timestamp, float sn
uint8_t MyMesh::handleLoginReq(const mesh::Identity& sender, const uint8_t* secret, uint32_t sender_timestamp, const uint8_t* data, bool is_flood) { uint8_t MyMesh::handleLoginReq(const mesh::Identity& sender, const uint8_t* secret, uint32_t sender_timestamp, const uint8_t* data, bool is_flood) {
ClientInfo* client = NULL; ClientInfo* client = NULL;
if (data[0] == 0) { // blank password, just check if sender is in ACL if (strcmp((char *)data, _prefs.password) != 0) { // admin pw bypasses ACL (allows upgrade)
client = acl.getClient(sender.pub_key, PUB_KEY_SIZE); client = acl.getClient(sender.pub_key, PUB_KEY_SIZE);
if (client == NULL) { if (client == NULL) {
#if MESH_DEBUG #if MESH_DEBUG

Loading…
Cancel
Save