fix(tls): randomize TLS extension order
This commit is contained in:
parent
3ea0de50f9
commit
75bf1169ba
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
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...)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("failed to create new tls http client: %w", err))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue