mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 07:12:46 +01:00
fix: recreate http flag (#1144)
This commit is contained in:
7
main.go
7
main.go
@@ -42,6 +42,9 @@ func main() {
|
||||
{
|
||||
Name: "serve",
|
||||
Usage: "Start the Catalyst server",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{Name: "http", Usage: "HTTP listen address", Value: ":8090"},
|
||||
},
|
||||
Action: serve,
|
||||
},
|
||||
{
|
||||
@@ -108,8 +111,10 @@ func serve(ctx context.Context, command *cli.Command) error {
|
||||
|
||||
defer cleanup()
|
||||
|
||||
addr := command.String("http")
|
||||
|
||||
server := &http.Server{
|
||||
Addr: ":8090",
|
||||
Addr: addr,
|
||||
Handler: catalyst,
|
||||
ReadTimeout: 10 * time.Minute,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user