Browse Source

set correct update endpoint

Alan Shreve 12 years ago
parent
commit
26038dbf1b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/ngrok/client/update_release.go

+ 2 - 3
src/ngrok/client/update_release.go

@@ -14,8 +14,7 @@ import (
 )
 
 const (
-	//updateEndpoint      = "http://dl.ngrok.com/update"
-	updateEndpoint = "http://dl.ngrok.me:8080/update"
+	updateEndpoint = "http://dl.ngrok.com/update"
 )
 
 func autoUpdate(s *State, ctl *ui.Controller) {
@@ -39,7 +38,7 @@ func autoUpdate(s *State, ctl *ui.Controller) {
 						close(downloadComplete)
 						return
 					} else {
-						if (progress % 25 == 0) {
+						if progress%25 == 0 {
 							log.Info("Downloading update %d%% complete", progress)
 						}
 						s.update = ui.UpdateStatus(progress)