mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
let crypto/tls choose the proper ciphers
This commit is contained in:
parent
e62e6608e1
commit
524b2aca56
@ -187,11 +187,8 @@ func (c *Config) GetTLSConfig(opts ...Option) *tls.Config {
|
||||
}
|
||||
|
||||
if !c.AllowInsecureCiphers && len(config.CipherSuites) == 0 {
|
||||
// use tls cipher suites from cryto/tls
|
||||
config.CipherSuites = []uint16{}
|
||||
for _, s := range tls.CipherSuites() {
|
||||
config.CipherSuites = append(config.CipherSuites, s.ID)
|
||||
}
|
||||
// crypto/tls will use the proper ciphers
|
||||
config.CipherSuites = nil
|
||||
}
|
||||
|
||||
config.InsecureSkipVerify = c.AllowInsecure
|
||||
|
Loading…
x
Reference in New Issue
Block a user