Browse Source

Add instructions on where to download a new version of ngrok to incompatible and outdated version messages

Alan Shreve 12 years ago
parent
commit
cf64f7d1d3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/ngrok/client/views/term/view.go
  2. 1 1
      src/ngrok/server/tunnel.go

+ 1 - 1
src/ngrok/client/views/term/view.go

@@ -78,7 +78,7 @@ func (v *TermView) Render() {
 	// new version message
 	newVersion := v.state.GetNewVersion()
 	if newVersion != "" {
-		newVersionMsg := fmt.Sprintf("new version available")
+		newVersionMsg := fmt.Sprintf("new version available at http://ngrok.com")
 		v.APrintf(termbox.ColorYellow, 30, 0, newVersionMsg)
 	}
 

+ 1 - 1
src/ngrok/server/tunnel.go

@@ -61,7 +61,7 @@ func newTunnel(m *msg.RegMsg, ctl *Control) (t *Tunnel) {
 	}
 
 	if m.Version != version.Proto {
-		t.ctl.stop <- &msg.RegAckMsg{Error: fmt.Sprintf("Incompatible versions. Server %s, client %s.", version.MajorMinor(), m.Version)}
+		t.ctl.stop <- &msg.RegAckMsg{Error: fmt.Sprintf("Incompatible versions. Server %s, client %s. Download a new version at http://ngrok.com", version.MajorMinor(), m.Version)}
 	}
 
 	// pre-encode the http basic auth for fast comparisons later