mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-07 05:13:34 +00:00
add tls1.3 ciphers
This commit is contained in:
parent
f44ea4fbec
commit
1a7b2337f8
@ -188,6 +188,10 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
|
|||||||
|
|
||||||
if !c.AllowInsecureCiphers && len(config.CipherSuites) == 0 {
|
if !c.AllowInsecureCiphers && len(config.CipherSuites) == 0 {
|
||||||
config.CipherSuites = []uint16{
|
config.CipherSuites = []uint16{
|
||||||
|
tls.TLS_AES_128_GCM_SHA256,
|
||||||
|
tls.TLS_AES_256_GCM_SHA384,
|
||||||
|
tls.TLS_CHACHA20_POLY1305_SHA256,
|
||||||
|
|
||||||
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
|
tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,
|
||||||
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
|
tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,
|
||||||
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user