Ver código fonte

* BUG FIX: remote login fix same as repeater

Scott Powell 8 meses atrás
pai
commit
30ccc1fa01
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      examples/simple_room_server/MyMesh.cpp

+ 4 - 0
examples/simple_room_server/MyMesh.cpp

@@ -332,6 +332,10 @@ void MyMesh::onAnonDataRecv(mesh::Packet *packet, const uint8_t *secret, const m
       dirty_contacts_expiry = futureMillis(LAZY_CONTACTS_WRITE_DELAY);
     }
 
+    if (packet->isRouteFlood()) {
+      client->out_path_len = -1;  // need to rediscover out_path
+    }
+
     uint32_t now = getRTCClock()->getCurrentTimeUnique();
     memcpy(reply_data, &now, 4); // response packets always prefixed with timestamp
     // TODO: maybe reply with count of messages waiting to be synced for THIS client?