// qtlsConfigToTLSConfig is used to transform a qtls.Config to a tls.Config.
// It is used to create the tls.Config in the ClientHelloInfo.
// It doesn't copy all values, but only those used by ClientHelloInfo.SupportsCertificate.
qtlsConfigToTLSConfig is used to transform a qtls.Config to a tls.Config.
It is used to create the tls.Config in the ClientHelloInfo.
It doesn't copy all values, but only those used by ClientHelloInfo.SupportsCertificate.
// qtlsConfigToTLSConfig is used to transform a qtls . Config to a tls . Config . // It is used to create the tls . Config in the ClientHelloInfo . // It doesn ' t copy all values but only those used by ClientHelloInfo . SupportsCertificate .
func qtlsConfigToTLSConfig(config *qtls.Config) *tls.Config {
	return &tls.Config{
		MinVersion:       config.MinVersion,
		MaxVersion:       config.MaxVersion,
		CipherSuites:     config.CipherSuites,
		CurvePreferences: config.CurvePreferences,
	}
}
func qtlsConfigToTLSConfig ( config * qtls . Config ) * tls . Config { return & tls . Config { MinVersion : config . MinVersion , MaxVersion : config . MaxVersion , CipherSuites : config . CipherSuites , CurvePreferences : config . CurvePreferences , } }
qtlsConfigToTLSConfig is used to transform a qtls.Config to a tls.Config.
qtlsConfigToTLSConfig is used to transform a qtls . Config to a tls . Config .