fix(tls): randomize TLS extension order

This commit is contained in:
ayn2op 2026-08-12 01:40:27 -04:00
parent 3ea0de50f9
commit 75bf1169ba

View file

@ -9,7 +9,7 @@ import (
) )
func NewClient(options ...tls_client.HttpClientOption) tls_client.HttpClient { func NewClient(options ...tls_client.HttpClientOption) tls_client.HttpClient {
options = append([]tls_client.HttpClientOption{tls_client.WithClientProfile(clientProfile)}, options...) options = append([]tls_client.HttpClientOption{tls_client.WithClientProfile(clientProfile), tls_client.WithRandomTLSExtensionOrder()}, options...)
client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...) client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...)
if err != nil { if err != nil {
panic(fmt.Errorf("failed to create new tls http client: %w", err)) panic(fmt.Errorf("failed to create new tls http client: %w", err))