Skip to content

Commit

Permalink
Released 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kontsevoy committed Aug 19, 2016
1 parent 0c85a3d commit f235f46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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.4
VERSION=1.0.5

# These are standard autotools variables, don't change them please
BUILDDIR ?= build
Expand Down Expand Up @@ -129,7 +129,7 @@ tag:
# make release - produces a binary release tarball
#
.PHONY: release
release: clean all
release: clean setver all
cp -rf $(BUILDDIR) teleport
@echo $(GITTAG) > teleport/VERSION
tar -czf $(RELEASE).tar.gz teleport
Expand Down
9 changes: 7 additions & 2 deletions tool/tctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ func printHeader(t *goterm.Table, cols []string) {
// Add creates a new sign-up token and prints a token URL to stdout.
// A user is not created until he visits the sign-up URL and completes the process
func (u *UserCommand) Add(client *auth.TunClient) error {

// if no local logins were specified, default to 'login'
if u.allowedLogins == "" {
u.allowedLogins = u.login
Expand Down Expand Up @@ -308,7 +307,13 @@ func (u *UserCommand) Add(client *auth.TunClient) error {
} else {
hostname = proxies[0].Hostname
}
url := web.CreateSignupLink(net.JoinHostPort(hostname, strconv.Itoa(defaults.HTTPListenPort)), token)

// try to auto-suggest the activation link
_, proxyPort, err := net.SplitHostPort(u.config.Proxy.WebAddr.Addr)
if err != nil {
proxyPort = strconv.Itoa(defaults.HTTPListenPort)
}
url := web.CreateSignupLink(net.JoinHostPort(hostname, proxyPort), token)
fmt.Printf("Signup token has been created and is valid for %v seconds. Share this URL with the user:\n%v\n\nNOTE: make sure '%s' is accessible!\n", defaults.MaxSignupTokenTTL.Seconds(), url, hostname)
return nil
}
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.4"
Version = "1.0.5"
)

var Gitref string

0 comments on commit f235f46

Please sign in to comment.