mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-23 17:16:40 +01:00
Merge pull request #1070 from FiloSottile/master
Actually set tls.Config.PreferServerCipherSuites
This commit is contained in:
commit
d4f4fcdb4c
1 changed files with 1 additions and 0 deletions
|
@ -350,6 +350,7 @@ func MakeTLSConfig(configs []*Config) (*tls.Config, error) {
|
||||||
if i > 0 && cfg.PreferServerCipherSuites != configs[i-1].PreferServerCipherSuites {
|
if i > 0 && cfg.PreferServerCipherSuites != configs[i-1].PreferServerCipherSuites {
|
||||||
return nil, fmt.Errorf("cannot both use PreferServerCipherSuites and not use it")
|
return nil, fmt.Errorf("cannot both use PreferServerCipherSuites and not use it")
|
||||||
}
|
}
|
||||||
|
config.PreferServerCipherSuites = cfg.PreferServerCipherSuites
|
||||||
|
|
||||||
// Go with the widest range of protocol versions
|
// Go with the widest range of protocol versions
|
||||||
if config.MinVersion == 0 || cfg.ProtocolMinVersion < config.MinVersion {
|
if config.MinVersion == 0 || cfg.ProtocolMinVersion < config.MinVersion {
|
||||||
|
|
Loading…
Reference in a new issue