Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af86dd0

Browse files
committedOct 6, 2015
Limit the range of ports to ten
1 parent 8abcea4 commit af86dd0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed
 

‎main.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ package main
55

66
import (
77
"flag"
8-
log "github.com/Sirupsen/logrus"
9-
"github.com/carlescere/scheduler"
10-
"github.com/gin-gonic/gin"
11-
"github.com/itsjamie/gin-cors"
12-
"github.com/kardianos/osext"
13-
"github.com/vharitonsky/iniflags"
148
"os"
159
"os/user"
1610
"path/filepath"
1711
"runtime/debug"
1812
"strconv"
1913
"text/template"
2014
"time"
15+
16+
log "github.com/Sirupsen/logrus"
17+
"github.com/carlescere/scheduler"
18+
"github.com/gin-gonic/gin"
19+
"github.com/itsjamie/gin-cors"
20+
"github.com/kardianos/osext"
21+
"github.com/vharitonsky/iniflags"
2122
//"github.com/sanbornm/go-selfupdate/selfupdate" #included in update.go to change heavily
2223
)
2324

@@ -212,7 +213,7 @@ func main() {
212213
r.GET("/info", infoHandler)
213214
go func() {
214215
start := 49152
215-
end := 65535
216+
end := 49162
216217
i := start
217218
for i < end {
218219
i = i + 1
@@ -230,7 +231,7 @@ func main() {
230231

231232
go func() {
232233
start := 49152
233-
end := 65535
234+
end := 49162
234235
i := start
235236
for i < end {
236237
i = i + 1

0 commit comments

Comments
 (0)
Please sign in to comment.