mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: add *Config argument to Dial
Document undocumented exported names. Allow nil Rand, Time, RootCAs in Config. Fixes #1248. R=agl1 CC=golang-dev https://golang.org/cl/3481042
This commit is contained in:
parent
2660c2a7be
commit
b15c4245c5
7 changed files with 110 additions and 41 deletions
|
|
@ -111,7 +111,7 @@ func Dial(url, protocol, origin string) (ws *Conn, err os.Error) {
|
|||
client, err = net.Dial("tcp", "", parsedUrl.Host)
|
||||
|
||||
case "wss":
|
||||
client, err = tls.Dial("tcp", "", parsedUrl.Host)
|
||||
client, err = tls.Dial("tcp", "", parsedUrl.Host, nil)
|
||||
|
||||
default:
|
||||
err = ErrBadScheme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue