Browse Source

Reset repeater flood outpath on login

pull/2586/head
mikecarper 4 weeks ago
parent
commit
d762c61347
  1. 2
      docs/cli_commands.md
  2. 2
      examples/simple_repeater/MyMesh.cpp

2
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. - The path hash size is inferred from the hop hash width.
- `outpath` overrides the primary direct route used for replies to the caller. - `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. - `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.
--- ---

2
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 client->out_path_len = OUT_PATH_UNKNOWN; // need to rediscover out_path
} }

Loading…
Cancel
Save