mirror of https://github.com/golang/go.git
crypto/tls: fix typo referencing the required Config field
Thanks to Frithjof Schulze for noticing. LGTM=adg R=adg CC=agl, golang-codereviews, r https://golang.org/cl/107740043
This commit is contained in:
parent
14a75ecf4a
commit
19fe9a2c72
|
|
@ -28,7 +28,7 @@ func Server(conn net.Conn, config *Config) *Conn {
|
||||||
|
|
||||||
// Client returns a new TLS client side connection
|
// Client returns a new TLS client side connection
|
||||||
// using conn as the underlying transport.
|
// using conn as the underlying transport.
|
||||||
// The config cannot be nil: users must set either ServerHostname or
|
// The config cannot be nil: users must set either ServerName or
|
||||||
// InsecureSkipVerify in the config.
|
// InsecureSkipVerify in the config.
|
||||||
func Client(conn net.Conn, config *Config) *Conn {
|
func Client(conn net.Conn, config *Config) *Conn {
|
||||||
return &Conn{conn: conn, config: config, isClient: true}
|
return &Conn{conn: conn, config: config, isClient: true}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue