Fix missing default store value

This commit is contained in:
世界
2025-01-30 22:20:36 +08:00
parent 5cf02687e1
commit a0b6fcf5c6
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 {