diff --git a/tls.go b/tls.go index 0b856c4..d50e120 100644 --- a/tls.go +++ b/tls.go @@ -28,7 +28,7 @@ func Server(conn net.Conn, config *Config) *Conn { // Client returns a new TLS client side connection // 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. func Client(conn net.Conn, config *Config) *Conn { return &Conn{conn: conn, config: config, isClient: true}