mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 09:25:41 +08:00
downgrade to tls12
This commit is contained in:
parent
e27601f648
commit
88e33cab7e
@ -130,10 +130,9 @@ func (s *TLS) ListenAndServe(c net.Conn) {
|
||||
|
||||
tlsConfig = &stdtls.Config{
|
||||
Certificates: []stdtls.Certificate{cert},
|
||||
MinVersion: stdtls.VersionTLS12,
|
||||
MaxVersion: stdtls.VersionTLS13,
|
||||
MinVersion: stdtls.VersionTLS10,
|
||||
MaxVersion: stdtls.VersionTLS12,
|
||||
SessionTicketKey: ticketKey,
|
||||
Accept0RTTData: true,
|
||||
}
|
||||
} else {
|
||||
tlsConfig = nil
|
||||
@ -184,8 +183,8 @@ func (s *TLS) Dial(network, addr string) (net.Conn, error) {
|
||||
ServerName: s.serverName,
|
||||
InsecureSkipVerify: s.skipVerify,
|
||||
ClientSessionCache: stdtls.NewLRUClientSessionCache(64),
|
||||
MinVersion: stdtls.VersionTLS12,
|
||||
MaxVersion: stdtls.VersionTLS13,
|
||||
MinVersion: stdtls.VersionTLS10,
|
||||
MaxVersion: stdtls.VersionTLS12,
|
||||
}
|
||||
|
||||
c := stdtls.Client(cc, conf)
|
||||
|
Loading…
Reference in New Issue
Block a user