mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-03 02:36:11 +00:00
* direct/zero hop by default
This commit is contained in:
@@ -1540,7 +1540,7 @@ void MyMesh::handleCmdFrame(size_t len) {
|
|||||||
if (recipient == NULL) { // FIRMWARE_VER_CODE 13+, allow non-contact requests
|
if (recipient == NULL) { // FIRMWARE_VER_CODE 13+, allow non-contact requests
|
||||||
memset(&anon, 0, sizeof(anon));
|
memset(&anon, 0, sizeof(anon));
|
||||||
memcpy(anon.id.pub_key, pub_key, PUB_KEY_SIZE);
|
memcpy(anon.id.pub_key, pub_key, PUB_KEY_SIZE);
|
||||||
anon.out_path_len = OUT_PATH_UNKNOWN;
|
anon.out_path_len = 0; // default to zero-hop direct
|
||||||
anon.type = ADV_TYPE_NONE; // unknown
|
anon.type = ADV_TYPE_NONE; // unknown
|
||||||
|
|
||||||
if (addContact(anon)) recipient = &anon;
|
if (addContact(anon)) recipient = &anon;
|
||||||
|
|||||||
Reference in New Issue
Block a user