Fix missing default store value

This commit is contained in:
世界
2025-01-30 22:20:36 +08:00
parent c34c631952
commit 7a76be8231
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ type Store struct {
func NewStore(ctx context.Context, logger logger.Logger, options option.CertificateOptions) (*Store, error) {
var systemPool *x509.CertPool
switch options.Store {
case C.CertificateStoreSystem:
case C.CertificateStoreSystem, "":
platformInterface := service.FromContext[platform.Interface](ctx)
systemCertificates := platformInterface.SystemCertificates()
if len(systemCertificates) > 0 {