Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 6916c215b00ab4d7edf4be14848ab2e695697381 Component: engine
12 lines
273 B
Go
12 lines
273 B
Go
// +build go1.8
|
|
|
|
package client
|
|
|
|
import "crypto/tls"
|
|
|
|
// tlsConfigClone returns a clone of tls.Config. This function is provided for
|
|
// compatibility for go1.7 that doesn't include this method in stdlib.
|
|
func tlsConfigClone(c *tls.Config) *tls.Config {
|
|
return c.Clone()
|
|
}
|