From af86dd0da9c7bc92437319a197d7860f4a840eb1 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Tue, 6 Oct 2015 15:57:06 +0200 Subject: [PATCH] Limit the range of ports to ten --- main.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index f68bc82cf..3e9e1fc32 100755 --- a/main.go +++ b/main.go @@ -5,12 +5,6 @@ package main import ( "flag" - log "github.com/Sirupsen/logrus" - "github.com/carlescere/scheduler" - "github.com/gin-gonic/gin" - "github.com/itsjamie/gin-cors" - "github.com/kardianos/osext" - "github.com/vharitonsky/iniflags" "os" "os/user" "path/filepath" @@ -18,6 +12,13 @@ import ( "strconv" "text/template" "time" + + log "github.com/Sirupsen/logrus" + "github.com/carlescere/scheduler" + "github.com/gin-gonic/gin" + "github.com/itsjamie/gin-cors" + "github.com/kardianos/osext" + "github.com/vharitonsky/iniflags" //"github.com/sanbornm/go-selfupdate/selfupdate" #included in update.go to change heavily ) @@ -212,7 +213,7 @@ func main() { r.GET("/info", infoHandler) go func() { start := 49152 - end := 65535 + end := 49162 i := start for i < end { i = i + 1 @@ -230,7 +231,7 @@ func main() { go func() { start := 49152 - end := 65535 + end := 49162 i := start for i < end { i = i + 1