mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-13 22:10:14 +08:00
Merge pull request #1070 from FiloSottile/master
Actually set tls.Config.PreferServerCipherSuites
This commit is contained in:
commit
d4f4fcdb4c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user