Skip to content

Commit

Permalink
Merge ec9079b into b412d44
Browse files Browse the repository at this point in the history
  • Loading branch information
sibucan committed Mar 24, 2020
2 parents b412d44 + ec9079b commit 658f28c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ func main() {
os.Exit(1)
}

if err := command.Flags().Set("port", "0"); err != nil {
sentry.CaptureError(ctx, err)
fmt.Fprintf(os.Stderr, "could not set port flag: %v\n", err)
os.Exit(1)
}
if err := command.Flags().Set("secure-port", "10253"); err != nil {
sentry.CaptureError(ctx, err)
fmt.Fprintf(os.Stderr, "could not set secure-port flag: %v\n", err)
os.Exit(1)
}

pflag.CommandLine.SetNormalizeFunc(utilflag.WordSepNormalizeFunc)
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)

Expand Down

0 comments on commit 658f28c

Please sign in to comment.