mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-27 17:22:30 -04:00
Merge pull request #1070 from FiloSottile/master
Actually set tls.Config.PreferServerCipherSuites
This commit is contained in:
@@ -350,6 +350,7 @@ func MakeTLSConfig(configs []*Config) (*tls.Config, error) {
|
||||
if i > 0 && cfg.PreferServerCipherSuites != configs[i-1].PreferServerCipherSuites {
|
||||
return nil, fmt.Errorf("cannot both use PreferServerCipherSuites and not use it")
|
||||
}
|
||||
config.PreferServerCipherSuites = cfg.PreferServerCipherSuites
|
||||
|
||||
// Go with the widest range of protocol versions
|
||||
if config.MinVersion == 0 || cfg.ProtocolMinVersion < config.MinVersion {
|
||||
|
||||
Reference in New Issue
Block a user