pkg/transport: update tls.Config copy method

For Go 1.7
This commit is contained in:
Gyu-Ho Lee 2016-09-18 22:50:45 +09:00
parent 33dbf5c6bd
commit 8c9a88c7d4

View File

@ -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