File tree 1 file changed +2
-9
lines changed 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ package tls
11
11
// https://www.imperialviolet.org/2013/02/04/luckythirteen.html.
12
12
13
13
import (
14
- "bytes"
15
14
"crypto"
16
15
"crypto/ecdsa"
17
16
"crypto/rsa"
@@ -30,21 +29,15 @@ import (
30
29
// The configuration config must be non-nil and must include
31
30
// at least one certificate or else set GetCertificate.
32
31
func Server (conn net.Conn , config * Config ) * Conn {
33
- return & Conn {
34
- conn : conn , config : config ,
35
- input : * bytes .NewReader (nil ), // Issue 28269
36
- }
32
+ return & Conn {conn : conn , config : config }
37
33
}
38
34
39
35
// Client returns a new TLS client side connection
40
36
// using conn as the underlying transport.
41
37
// The config cannot be nil: users must set either ServerName or
42
38
// InsecureSkipVerify in the config.
43
39
func Client (conn net.Conn , config * Config ) * Conn {
44
- return & Conn {
45
- conn : conn , config : config , isClient : true ,
46
- input : * bytes .NewReader (nil ), // Issue 28269
47
- }
40
+ return & Conn {conn : conn , config : config , isClient : true }
48
41
}
49
42
50
43
// A listener implements a network listener (net.Listener) for TLS connections.
You can’t perform that action at this time.
0 commit comments