mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 06:43:23 +00:00
16 lines
253 B
Go
16 lines
253 B
Go
// Copyright 2017 Apcera Inc. All rights reserved.
|
|
// +build go1.8
|
|
|
|
package util
|
|
|
|
import "crypto/tls"
|
|
|
|
// CloneTLSConfig returns a copy of c.
|
|
func CloneTLSConfig(c *tls.Config) *tls.Config {
|
|
if c == nil {
|
|
return &tls.Config{}
|
|
}
|
|
|
|
return c.Clone()
|
|
}
|