mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
feat: copy some certificate related options for uTLS (#3240)
This commit is contained in:
parent
a72c4d2644
commit
9ccb080dcc
@ -111,6 +111,10 @@ func uTLSConfigFromTLSConfig(config *systls.Config) (*utls.Config, error) { // n
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user