diff --git a/Cargo.lock b/Cargo.lock index 9b5ec98..164fccd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2780,7 +2780,7 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" [[package]] name = "telemt" -version = "3.4.1" +version = "3.4.2" dependencies = [ "aes", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 009f679..beac5d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "telemt" -version = "3.4.1" +version = "3.4.2" edition = "2024" [features] diff --git a/src/tls_front/emulator.rs b/src/tls_front/emulator.rs index a23373d..ba8453a 100644 --- a/src/tls_front/emulator.rs +++ b/src/tls_front/emulator.rs @@ -18,6 +18,9 @@ fn jitter_and_clamp_sizes(sizes: &[usize], rng: &SecureRandom) -> Vec { .iter() .map(|&size| { let base = size.clamp(MIN_APP_DATA, MAX_APP_DATA); + if base == MIN_APP_DATA || base == MAX_APP_DATA { + return base; + } let jitter_range = ((base as f64) * 0.03).round() as i64; if jitter_range == 0 { return base;