// buildGetConfigForClient returns an implementation of GetConfigForClient
// callback in tls.Config.
//
// If the implementation returns a nil tls.Config, the original Config will be
// used, but if it's non-nil, the returned Config will be used to handle this
// connection.
buildGetConfigForClient returns an implementation of GetConfigForClient
callback in tls.Config.

If the implementation returns a nil tls.Config, the original Config will be
used, but if it's non-nil, the returned Config will be used to handle this
connection.
// buildGetConfigForClient returns an implementation of GetConfigForClient // callback in tls . Config . // // If the implementation returns a nil tls . Config the original Config will be // used but if it ' s non - nil the returned Config will be used to handle this // connection .
func (c *Client) buildGetConfigForClient(ctx *TLSOptionCtx) func(*tls.ClientHelloInfo) (*tls.Config, error) {
	return func(*tls.ClientHelloInfo) (*tls.Config, error) {
		return ctx.mutableConfig.TLSConfig(), nil
	}
}
func ( c * Client ) buildGetConfigForClient ( ctx * TLSOptionCtx ) func ( * tls . ClientHelloInfo ) ( * tls . Config , error ) { return func ( * tls . ClientHelloInfo ) ( * tls . Config , error ) { return ctx . mutableConfig . TLSConfig ( ) , nil } }
buildGetConfigForClient returns an implementation of GetConfigForClient
callback in tls.Config.
buildGetConfigForClient returns an implementation of GetConfigForClient callback in tls . Config .