From d762c61347f6affe6a9d7a84e435de08d3b6ac82 Mon Sep 17 00:00:00 2001 From: mikecarper Date: Mon, 18 May 2026 16:38:45 -0700 Subject: [PATCH] Reset repeater flood outpath on login --- docs/cli_commands.md | 2 +- examples/simple_repeater/MyMesh.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/cli_commands.md b/docs/cli_commands.md index 38fbebf6f..2cb818c61 100644 --- a/docs/cli_commands.md +++ b/docs/cli_commands.md @@ -760,7 +760,7 @@ This document provides an overview of CLI commands that can be sent to MeshCore - The path hash size is inferred from the hop hash width. - `outpath` overrides the primary direct route used for replies to the caller. - `clear` forgets the current direct path and allows normal path discovery to repopulate it. -- `flood` forces replies to use flood packets and ignores later discovered direct paths. +- `flood` forces replies to use flood packets until the client logs in again. --- diff --git a/examples/simple_repeater/MyMesh.cpp b/examples/simple_repeater/MyMesh.cpp index 4c25d9a44..2cc6f117f 100644 --- a/examples/simple_repeater/MyMesh.cpp +++ b/examples/simple_repeater/MyMesh.cpp @@ -128,7 +128,7 @@ uint8_t MyMesh::handleLoginReq(const mesh::Identity& sender, const uint8_t* secr } } - if (is_flood && client->out_path_len != OUT_PATH_FORCE_FLOOD) { + if (is_flood) { client->out_path_len = OUT_PATH_UNKNOWN; // need to rediscover out_path }