mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-10 18:24:34 +00:00
Add TLS server name option for client
This commit is contained in:
@@ -26,6 +26,7 @@ func client(config *clientConfig) {
|
||||
logrus.WithField("config", config.String()).Info("Client configuration loaded")
|
||||
// TLS
|
||||
tlsConfig := &tls.Config{
|
||||
ServerName: config.ServerName,
|
||||
InsecureSkipVerify: config.Insecure,
|
||||
NextProtos: []string{tlsProtocolName},
|
||||
MinVersion: tls.VersionTLS13,
|
||||
|
Reference in New Issue
Block a user