changeset 260 | 445e01aede7e |
parent 259 | db4911b0c721 |
child 261 | 270cc4dda0c5 |
259:db4911b0c721 | 260:445e01aede7e |
---|---|
1 // Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style |
|
3 // license that can be found in the LICENSE file. |
|
4 |
|
5 // +build go1.8 |
|
6 |
|
7 package websocket |
|
8 |
|
9 import "crypto/tls" |
|
10 |
|
11 func cloneTLSConfig(cfg *tls.Config) *tls.Config { |
|
12 if cfg == nil { |
|
13 return &tls.Config{} |
|
14 } |
|
15 return cfg.Clone() |
|
16 } |