Skip to content

Commit f3b6167

Browse files
committed
fix anon req always responding with flood
1 parent a5f3766 commit f3b6167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/simple_repeater/MyMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void MyMesh::onAnonDataRecv(mesh::Packet *packet, const uint8_t *secret, const m
515515
data[len] = 0; // ensure null terminator
516516
uint8_t reply_len;
517517

518-
reply_path_len = -1;
518+
reply_path_len = packet->path_len;
519519
if (data[4] == 0 || data[4] >= ' ') { // is password, ie. a login request
520520
reply_len = handleLoginReq(sender, secret, timestamp, &data[4], packet->isRouteFlood());
521521
} else if (data[4] == ANON_REQ_TYPE_REGIONS && packet->isRouteDirect()) {

0 commit comments

Comments
 (0)