mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-14 06:46:27 +03:00
caddytls: Remove PreferServerCipherSuites
It has been deprecated by Go
This commit is contained in:
parent
ea8df6ff11
commit
1bdd451913
1 changed files with 1 additions and 4 deletions
|
@ -172,8 +172,7 @@ func (p *ConnectionPolicy) buildStandardTLSConfig(ctx caddy.Context) error {
|
||||||
// so the user-provided config can fill them in; then we will
|
// so the user-provided config can fill them in; then we will
|
||||||
// fill in a default config at the end if they are still unset
|
// fill in a default config at the end if they are still unset
|
||||||
cfg := &tls.Config{
|
cfg := &tls.Config{
|
||||||
NextProtos: p.ALPN,
|
NextProtos: p.ALPN,
|
||||||
PreferServerCipherSuites: true,
|
|
||||||
GetCertificate: func(hello *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
GetCertificate: func(hello *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||||||
// TODO: I don't love how this works: we pre-build certmagic configs
|
// TODO: I don't love how this works: we pre-build certmagic configs
|
||||||
// so that handshakes are faster. Unfortunately, certmagic configs are
|
// so that handshakes are faster. Unfortunately, certmagic configs are
|
||||||
|
@ -475,8 +474,6 @@ func setDefaultTLSParams(cfg *tls.Config) {
|
||||||
if cfg.MaxVersion == 0 {
|
if cfg.MaxVersion == 0 {
|
||||||
cfg.MaxVersion = tls.VersionTLS13
|
cfg.MaxVersion = tls.VersionTLS13
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.PreferServerCipherSuites = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// LeafCertClientAuth verifies the client's leaf certificate.
|
// LeafCertClientAuth verifies the client's leaf certificate.
|
||||||
|
|
Loading…
Reference in a new issue