Browse Source

indicate in the terminal UI when the web UI is disabled

Alan Shreve 12 years ago
parent
commit
a29febde5c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/ngrok/client/views/term/view.go

+ 3 - 0
src/ngrok/client/views/term/view.go

@@ -119,6 +119,9 @@ func (v *TermView) Render() {
 	v.Printf(0, 4, "%-30s%s", "Protocol", v.state.GetProtocol().GetName())
 	v.Printf(0, 5, "%-30s%s -> %s", "Forwarding", v.state.GetPublicUrl(), v.state.GetLocalAddr())
 	webAddr := fmt.Sprintf("http://localhost:%d", v.state.GetWebPort())
+	if v.state.GetWebPort() == -1 {
+		webAddr = "disabled"
+	}
 	v.Printf(0, 6, "%-30s%s", "Web Interface", webAddr)
 
 	connMeter, connTimer := v.state.GetConnectionMetrics()