Merge pull request #391 from LibreQoE/long_term_stats

lts > develop
This commit is contained in:
Robert Chacón
2023-08-11 15:31:45 -06:00
committed by GitHub
2 changed files with 593 additions and 610 deletions

1199
src/rust/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -144,6 +144,10 @@ pub async fn exchange_keys_with_license_server(
}
fn decode_response(buf: &[u8]) -> Result<LicenseReply, LicenseCheckError> {
if buf.len() < 2 + std::mem::size_of::<u64>() {
log::error!("License server returned an invalid response");
return Err(LicenseCheckError::DeserializeFail);
}
const U64SIZE: usize = std::mem::size_of::<u64>();
let version_buf = &buf[0..2]
.try_into()