mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix: ensure default ssl provider is set
This commit is contained in:
@@ -27,6 +27,11 @@ type SettingsContentForPersistence struct {
|
||||
func (c SettingsContent) AsSSLProvider() *SettingsContentForSSLProvider {
|
||||
content := &SettingsContentForSSLProvider{}
|
||||
xmaps.Populate(c, content)
|
||||
|
||||
if content.Provider == "" {
|
||||
content.Provider = CAProviderTypeLetsEncrypt
|
||||
}
|
||||
|
||||
return content
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user