mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 00:37:52 +02:00
Fix KeyMaterial nil bug (#5849)
This commit is contained in:
1 parent
e88da0be1b
commit
bf2366ba3a
1 file changed
+3
@@ -240,6 +240,9 @@ func runFiler(cmd *Command, args []string) bool {
|
||||
// GetCertificateWithUpdate Auto refreshing TSL certificate
|
||||
func (fo *FilerOptions) GetCertificateWithUpdate(*tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||||
certs, err := fo.certProvider.KeyMaterial(context.Background())
|
||||
if certs == nil {
|
||||
return nil, err
|
||||
}
|
||||
return &certs.Certs[0], err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user