limit received messages to 1min into the future
This commit is contained in:
parent
8673c63d3c
commit
0ad4c4997c
@ -204,6 +204,12 @@ void NGCHS2Rizzler::handleMsgPack(ContactHandle4 sync_by_c, const std::vector<ui
|
|||||||
|
|
||||||
ts *= 100; // convert to ms
|
ts *= 100; // convert to ms
|
||||||
|
|
||||||
|
const uint64_t max_future_ms = 1u*60u*1000u; // accept up to 1 minute into the future
|
||||||
|
if (ts - max_future_ms > now_ts) {
|
||||||
|
// message is too far into the future
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const auto& j_ppk = j_entry.at("ppk");
|
const auto& j_ppk = j_entry.at("ppk");
|
||||||
|
|
||||||
uint32_t mid = j_entry.at("mid");
|
uint32_t mid = j_entry.at("mid");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user