diff --git a/transport/internet/tls/utls/utls.go b/transport/internet/tls/utls/utls.go index be4b42e0607..da8eed6e544 100644 --- a/transport/internet/tls/utls/utls.go +++ b/transport/internet/tls/utls/utls.go @@ -106,11 +106,15 @@ func (u uTLSClientConnection) GetConnectionApplicationProtocol() (string, error) func uTLSConfigFromTLSConfig(config *systls.Config) (*utls.Config, error) { // nolint: unparam uconfig := &utls.Config{ - Rand: config.Rand, - Time: config.Time, - RootCAs: config.RootCAs, - NextProtos: config.NextProtos, - ServerName: config.ServerName, + Rand: config.Rand, + Time: config.Time, + RootCAs: config.RootCAs, + NextProtos: config.NextProtos, + ServerName: config.ServerName, + VerifyPeerCertificate: config.VerifyPeerCertificate, + InsecureSkipVerify: config.InsecureSkipVerify, + ClientAuth: utls.ClientAuthType(config.ClientAuth), + ClientCAs: config.ClientCAs, } return uconfig, nil }