Revert "crypto/tls: don't send IP literals as SNI values."

This reverts commit a4dcc69201.

Change-Id: Ib55fd349a604d6b5220dac20327501e1ce46b962
Reviewed-on: https://go-review.googlesource.com/16770
Reviewed-by: Adam Langley <agl@golang.org>
This commit is contained in:
Adam Langley 2015-11-09 15:16:12 -08:00
parent a4dcc69201
commit b46df69541
3 changed files with 2 additions and 37 deletions

View file

@ -286,8 +286,7 @@ type Config struct {
// ServerName is used to verify the hostname on the returned
// certificates unless InsecureSkipVerify is given. It is also included
// in the client's handshake to support virtual hosting unless it is
// an IP address.
// in the client's handshake to support virtual hosting.
ServerName string
// ClientAuth determines the server's policy for