From 27129f24d537c73eb42386f93c89f6e2487a6543 Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Tue, 2 Sep 2025 22:54:47 +0200 Subject: [PATCH] fix: recreate http flag (#1144) --- main.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6033408..fb605e7 100644 --- a/main.go +++ b/main.go @@ -40,8 +40,11 @@ func main() { }, }, { - Name: "serve", - Usage: "Start the Catalyst server", + 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, }