mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-15 16:48:41 +00:00
Adjust ProtoBuf of TLS & XTLS
This commit is contained in:
parent
dab978749c
commit
ed0e9b12dc
5 changed files with 114 additions and 115 deletions
|
@ -1,7 +1,6 @@
|
|||
package xtls
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -205,13 +204,13 @@ func (c *Config) GetXTLSConfig(opts ...Option) *xtls.Config {
|
|||
|
||||
switch c.MinVersion {
|
||||
case "1.0":
|
||||
config.MinVersion = tls.VersionTLS10
|
||||
config.MinVersion = xtls.VersionTLS10
|
||||
case "1.1":
|
||||
config.MinVersion = tls.VersionTLS11
|
||||
config.MinVersion = xtls.VersionTLS11
|
||||
case "1.2":
|
||||
config.MinVersion = tls.VersionTLS12
|
||||
config.MinVersion = xtls.VersionTLS12
|
||||
case "1.3":
|
||||
config.MinVersion = tls.VersionTLS13
|
||||
config.MinVersion = xtls.VersionTLS13
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue