mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Merge pull request #1299 from entr0p1/companion-timestamp-fix
BUGFIX: Companion packet timestamp mismatch trips replay protection
This commit is contained in:
commit
2f5a8c59ea
1 changed files with 2 additions and 1 deletions
|
|
@ -903,6 +903,7 @@ void MyMesh::handleCmdFrame(size_t len) {
|
||||||
int result;
|
int result;
|
||||||
uint32_t expected_ack;
|
uint32_t expected_ack;
|
||||||
if (txt_type == TXT_TYPE_CLI_DATA) {
|
if (txt_type == TXT_TYPE_CLI_DATA) {
|
||||||
|
msg_timestamp = getRTCClock()->getCurrentTimeUnique(); // Use node's RTC instead of app timestamp to avoid tripping replay protection
|
||||||
result = sendCommandData(*recipient, msg_timestamp, attempt, text, est_timeout);
|
result = sendCommandData(*recipient, msg_timestamp, attempt, text, est_timeout);
|
||||||
expected_ack = 0; // no Ack expected
|
expected_ack = 0; // no Ack expected
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue