Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
Also improved the error message for self-signed certificates
Fixes #511
  • Loading branch information
kontsevoy committed Sep 15, 2016
1 parent 91115f2 commit a2c7b3c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Naming convention:
# for stable releases we use "1.0.0" format
# for pre-releases, we use "1.0.0-beta.2" format
VERSION=1.0.6-alpha
VERSION=1.1.0

# These are standard autotools variables, don't change them please
BUILDDIR ?= build
Expand Down
11 changes: 8 additions & 3 deletions lib/utils/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package utils

import (
"crypto/x509"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -90,9 +91,13 @@ func FatalError(err error) {

// UserMessageFromError returns user friendly error message from error
func UserMessageFromError(err error) string {
te, ok := err.(trace.Error)
if ok {
return te.OrigError().Error()
err = trace.Unwrap(err)

// untrusted cert?
switch err.(interface{}).(type) {
case x509.UnknownAuthorityError, x509.CertificateInvalidError:
return "WARNING:\n The proxy you are connecting to uses the self-signed HTTPS certificate.\n" +
" Try --insecure flag if you know what you're doing.\n"
}
return err.Error()
}
Expand Down
9 changes: 2 additions & 7 deletions vagrant/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
NODES ||= {
"a-auth" => ["a-auth", "10.0.10.10", "auth-a", "cluster-a"],
"b-auth" => ["b-auth", "10.0.10.20", "auth-b", "cluster-b"],
"web-1" => ["a-node", "10.0.10.12"],
"web-2" => ["a-node", "10.0.10.13"],
"redis" => ["a-node", "10.0.10.14"],
"postgres-1" => ["a-node", "10.0.10.15"],
"postgres-2" => ["a-node", "10.0.10.16"],
}


Expand Down Expand Up @@ -54,8 +49,8 @@ def apt_update(vm)
apt-get -y update
apt-get -y purge exim4-* libcairo*
apt-get -y autoremove
apt-get -y upgrade
apt-get -y dist-upgrade
#apt-get -y upgrade
#apt-get -y dist-upgrade
apt-get -y install htop tree vim aufs-tools screen curl
touch /root/apt.updated
fi
Expand Down
2 changes: 1 addition & 1 deletion vagrant/libvirt/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Vagrant.configure(2) do |config|

basic_config(config.vm)
configure_ssh(config.vm)
#apt_update(config.vm)
apt_update(config.vm)
install_docker(config.vm, DOCKER_VER)
install_teleport(config.vm)
configure_teleport(config.vm)
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package teleport

const (
Version = "1.0.6-alpha"
Version = "1.1.0"
)

var Gitref string

0 comments on commit a2c7b3c

Please sign in to comment.