Add uTLS remove SNI to snowflake client

This commit is contained in:
Shelikhoo 2022-02-11 09:57:37 +00:00
parent 9af0ad119b
commit ccfdcab8fe
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
3 changed files with 8 additions and 3 deletions

View file

@ -100,6 +100,9 @@ type ClientConfig struct {
// UTlsClientID is the type of user application that snowflake should imitate.
// If an empty value is provided, it will use Go's default TLS implementation
UTlsClientID string
// UTlsRemoveSNI is the flag to control whether SNI should be removed from Client Hello
// when uTLS is used.
UTlsRemoveSNI bool
}
// NewSnowflakeClient creates a new Snowflake transport client that can spawn multiple