mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/transport: update tls.Config copy method
For Go 1.7
This commit is contained in:
parent
33dbf5c6bd
commit
8c9a88c7d4
@ -268,6 +268,8 @@ func ShallowCopyTLSConfig(cfg *tls.Config) *tls.Config {
|
||||
ClientSessionCache: cfg.ClientSessionCache,
|
||||
MinVersion: cfg.MinVersion,
|
||||
MaxVersion: cfg.MaxVersion,
|
||||
DynamicRecordSizingDisabled: cfg.DynamicRecordSizingDisabled,
|
||||
Renegotiation: cfg.Renegotiation,
|
||||
CurvePreferences: cfg.CurvePreferences,
|
||||
}
|
||||
return &ncfg
|
||||
|
Loading…
x
Reference in New Issue
Block a user