Skip to content

Commit

Permalink
add --status-port flag to dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
qianyong committed Jan 27, 2021
1 parent 032fccb commit c775696
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/dbg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ func main() {
}
rootCmd.AddCommand(confCmd)

rootCmd.PersistentFlags().IntVar(&nginx.StatusPort, "status-port", 10246, `Port to use for the lua HTTP endpoint configuration.`)

if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down

0 comments on commit c775696

Please sign in to comment.