Skip to content

Commit cd693ef

Browse files
committed
Commenting the way we choose portPlain and portSSL as suggested in the PR#58
Signed-off-by: Andrea Tosatto <andrea.tosy@gmail.com>
1 parent c35a6c0 commit cd693ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"time"
1717

1818
log "github.com/Sirupsen/logrus"
19+
"github.com/arduino/arduino-builder/src/github.com/itsjamie/gin-cors"
1920
"github.com/carlescere/scheduler"
2021
"github.com/gin-gonic/gin"
21-
"github.com/itsjamie/gin-cors"
2222
"github.com/kardianos/osext"
2323
"github.com/vharitonsky/iniflags"
2424
//"github.com/sanbornm/go-selfupdate/selfupdate" #included in update.go to change heavily
@@ -236,6 +236,10 @@ func main() {
236236
if err != nil {
237237
panic(err)
238238
}
239+
// All the ports p in the range 8990 <= p <= portPlain
240+
// has already been scanned and results not free.
241+
// Thus we can restrict the search range for portSSL
242+
// to [portPlain+1, 9001).
239243
portSSL, err := getBindPort(portPlain+1, 9001)
240244
if err != nil {
241245
panic(err)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy