Add utls imitate setting to snowflake client

This commit is contained in:
Shelikhoo 2022-02-10 17:04:42 +00:00
parent c1c3596cf8
commit 9af0ad119b
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
3 changed files with 28 additions and 4 deletions

View file

@ -97,6 +97,9 @@ type ClientConfig struct {
// Max is the maximum number of snowflake proxy peers that the client should attempt to
// connect to. Defaults to 1.
Max int
// 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
}
// NewSnowflakeClient creates a new Snowflake transport client that can spawn multiple