Skip to content

Limit the range of ports to ten #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Limit the range of ports to ten
  • Loading branch information
matteosuppo committed Oct 6, 2015
commit af86dd0da9c7bc92437319a197d7860f4a840eb1
17 changes: 9 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ 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"
"runtime/debug"
"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
)

Expand Down Expand Up @@ -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
Expand All @@ -230,7 +231,7 @@ func main() {

go func() {
start := 49152
end := 65535
end := 49162
i := start
for i < end {
i = i + 1
Expand Down