aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2025-04-07 23:09:40 +0500
committerGitHub <noreply@github.com>2025-04-07 11:09:40 -0700
commitaa9121aa9de0593e758d0a956e989bbaa82c4869 (patch)
tree50262a00e4bfc7a12216b51f5414071216802c91
parent4dca59ed276f90fea1f79cf72cdeb23371f39ba8 (diff)
downloadseaweedfs-aa9121aa9de0593e758d0a956e989bbaa82c4869.tar.xz
seaweedfs-aa9121aa9de0593e758d0a956e989bbaa82c4869.zip
Revert "[filer] void panic if s3opt.tlsCACertificate is nill" (#6694)
Revert "[filer] void panic if s3opt.tlsCACertificate is nill (#6685)" This reverts commit 4dca59ed276f90fea1f79cf72cdeb23371f39ba8.
-rw-r--r--weed/command/filer.go1
-rw-r--r--weed/command/s3.go2
2 files changed, 1 insertions, 2 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index 1a341ac69..55ea1169d 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -114,7 +114,6 @@ func init() {
filerS3Options.dataCenter = cmdFiler.Flag.String("s3.dataCenter", "", "prefer to read and write to volumes in this data center")
filerS3Options.tlsPrivateKey = cmdFiler.Flag.String("s3.key.file", "", "path to the TLS private key file")
filerS3Options.tlsCertificate = cmdFiler.Flag.String("s3.cert.file", "", "path to the TLS certificate file")
- filerS3Options.tlsCACertificate = cmdFiler.Flag.String("s3.cacert.file", "", "path to the TLS CA certificate file")
filerS3Options.config = cmdFiler.Flag.String("s3.config", "", "path to the config file")
filerS3Options.auditLogConfig = cmdFiler.Flag.String("s3.auditLogConfig", "", "path to the audit log config file")
filerS3Options.allowEmptyFolder = cmdFiler.Flag.Bool("s3.allowEmptyFolder", true, "allow empty folders")
diff --git a/weed/command/s3.go b/weed/command/s3.go
index 06eb5529b..84042b3e0 100644
--- a/weed/command/s3.go
+++ b/weed/command/s3.go
@@ -312,7 +312,7 @@ func (s3opt *S3Options) startS3Server() bool {
}
caCertPool := x509.NewCertPool()
- if s3opt.tlsCACertificate != nil && *s3opt.tlsCACertificate != "" {
+ if *s3opt.tlsCACertificate != "" {
// load CA certificate file and add it to list of client CAs
caCertFile, err := ioutil.ReadFile(*s3opt.tlsCACertificate)
if err != nil {