Skip to content

Commit

Permalink
Add comments on CallbackPorts
Browse files Browse the repository at this point in the history
  • Loading branch information
punmechanic committed Mar 26, 2024
1 parent 23d2af4 commit c2c1e90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ var (
Version = "TBD"
BuildTimestamp = "BuildTimestamp is not set"
DownloadURL = "URL not set yet"
CallbackPorts = []string{"57468", "58888", "59999", "60000"}
// CallbackPorts is a list of ports that will be attempted in no particular order for hosting an Oauth2 callback web server.
// This cannot be set using -ldflags='-X ..' because -X requires that this be a string literal or uninitialized.
//
// These ports are chosen somewhat arbitrarily
CallbackPorts = []string{"57468", "47512", "57123", "61232", "48231", "49757", "59834", "54293"}
)

const (
Expand Down

0 comments on commit c2c1e90

Please sign in to comment.