mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 05:37:38 +03:00
Update xtransport.go
Follow overrideCipherSuite commit
This commit is contained in:
parent
b20b59e9ee
commit
78e6dc6b90
1 changed files with 2 additions and 1 deletions
|
@ -226,7 +226,8 @@ func (xTransport *XTransport) rebuildTransport() {
|
|||
} else {
|
||||
tlsClientConfig.ClientSessionCache = tls.NewLRUClientSessionCache(10)
|
||||
}
|
||||
if xTransport.tlsCipherSuite != nil {
|
||||
overrideCipherSuite := xTransport.tlsCipherSuite != nil && len(xTransport.tlsCipherSuite) > 0
|
||||
if overrideCipherSuite != nil {
|
||||
tlsClientConfig.PreferServerCipherSuites = false
|
||||
tlsClientConfig.MaxVersion = tls.VersionTLS13
|
||||
var tls13 = "198 199 4865 4866 4867 4868 4869 49332 49333"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue