From 680c2e76f15a5b8688b8ed7f5908a47dc69bcd42 Mon Sep 17 00:00:00 2001 From: Henco Appel Date: Tue, 11 Jul 2023 16:03:20 +0100 Subject: [PATCH] Fix the segfault from not setting s3 https port (#4667) --- weed/command/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/command/server.go b/weed/command/server.go index 249afdf10..fecb1cad6 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -139,6 +139,7 @@ func init() { serverOptions.v.readBufferSizeMB = cmdServer.Flag.Int("volume.readBufferSizeMB", 4, " larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally") s3Options.port = cmdServer.Flag.Int("s3.port", 8333, "s3 server http listen port") + s3Options.portHttps = cmdServer.Flag.Int("s3.port.https", 0, "s3 server https listen port") s3Options.portGrpc = cmdServer.Flag.Int("s3.port.grpc", 0, "s3 server grpc listen port") s3Options.domainName = cmdServer.Flag.String("s3.domainName", "", "suffix of the host name in comma separated list, {bucket}.{domainName}") s3Options.tlsPrivateKey = cmdServer.Flag.String("s3.key.file", "", "path to the TLS private key file")