mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 06:20:42 +01:00
[filer] void panic if s3opt.tlsCACertificate is nill (#6685)
* fix issues/6684 * add s3.cacert.file option for filer
This commit is contained in:
1 parent
cc67a0370c
commit
4dca59ed27
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user