From 3e4b98b00253b4117ad6c357d52fc230de5a3055 Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Mon, 23 Feb 2026 05:23:28 +0300 Subject: [PATCH] TLS Emulator tuning --- src/tls_front/emulator.rs | 2 +- src/tls_front/fetcher.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls_front/emulator.rs b/src/tls_front/emulator.rs index dc5b726..d2a4697 100644 --- a/src/tls_front/emulator.rs +++ b/src/tls_front/emulator.rs @@ -293,7 +293,7 @@ mod tests { ); let payload = first_app_data_payload(&response); - assert_eq!(payload.len(), 64); + assert!(payload.len() >= 64); assert_eq!(payload[payload.len() - 17], 0x16); } } diff --git a/src/tls_front/fetcher.rs b/src/tls_front/fetcher.rs index 340bbab..4678ea3 100644 --- a/src/tls_front/fetcher.rs +++ b/src/tls_front/fetcher.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use std::time::Duration; -use anyhow::{Context, Result, anyhow}; +use anyhow::{Result, anyhow}; use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio::net::TcpStream; use tokio::time::timeout;