aboutsummaryrefslogtreecommitdiff
path: root/weed/command/s3.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2025-04-07 21:45:49 +0500
committerGitHub <noreply@github.com>2025-04-07 09:45:49 -0700
commit4dca59ed276f90fea1f79cf72cdeb23371f39ba8 (patch)
tree2bcfa3c0f2ce087356377d6a6c8edda781519968 /weed/command/s3.go
parentcc67a0370c60a3fd5aa582c9fe677bb35a3331ae (diff)
downloadseaweedfs-4dca59ed276f90fea1f79cf72cdeb23371f39ba8.tar.xz
seaweedfs-4dca59ed276f90fea1f79cf72cdeb23371f39ba8.zip
[filer] void panic if s3opt.tlsCACertificate is nill (#6685)
* fix issues/6684 * add s3.cacert.file option for filer
Diffstat (limited to 'weed/command/s3.go')
-rw-r--r--weed/command/s3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go
index 84042b3e0..06eb5529b 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 != "" {
+ if s3opt.tlsCACertificate != nil && *s3opt.tlsCACertificate != "" {
// load CA certificate file and add it to list of client CAs
caCertFile, err := ioutil.ReadFile(*s3opt.tlsCACertificate)
if err != nil {