mirror of
https://github.com/telemt/telemt.git
synced 2026-06-19 02:00:08 +07:00
Update fetcher.rs
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -465,7 +465,9 @@ fn profile_supported_versions(profile: TlsFetchProfile) -> &'static [u16] {
|
|||||||
|
|
||||||
fn profile_padding_target(profile: TlsFetchProfile) -> usize {
|
fn profile_padding_target(profile: TlsFetchProfile) -> usize {
|
||||||
match profile {
|
match profile {
|
||||||
TlsFetchProfile::ModernChromeLike => 220,
|
// X25519MLKEM768 makes the Chrome-like ClientHello much larger than
|
||||||
|
// legacy pre-hybrid profiles; keep enough headroom for padding.
|
||||||
|
TlsFetchProfile::ModernChromeLike => 1450,
|
||||||
TlsFetchProfile::ModernFirefoxLike => 200,
|
TlsFetchProfile::ModernFirefoxLike => 200,
|
||||||
TlsFetchProfile::CompatTls12 => 180,
|
TlsFetchProfile::CompatTls12 => 180,
|
||||||
TlsFetchProfile::LegacyMinimal => 64,
|
TlsFetchProfile::LegacyMinimal => 64,
|
||||||
|
|||||||
Reference in New Issue
Block a user