summaryrefslogtreecommitdiffhomepage
path: root/modules/caddytls/automation.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddytls/automation.go')
-rw-r--r--modules/caddytls/automation.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go
index 197c4095d..ee168b432 100644
--- a/modules/caddytls/automation.go
+++ b/modules/caddytls/automation.go
@@ -198,7 +198,7 @@ func (ap *AutomationPolicy) Provision(tlsApp *TLS) error {
if err != nil {
return fmt.Errorf("loading external certificate manager modules: %v", err)
}
- for _, getCertVal := range vals.([]interface{}) {
+ for _, getCertVal := range vals.([]any) {
ap.Managers = append(ap.Managers, getCertVal.(certmagic.Manager))
}
}
@@ -209,7 +209,7 @@ func (ap *AutomationPolicy) Provision(tlsApp *TLS) error {
if err != nil {
return fmt.Errorf("loading TLS automation management module: %s", err)
}
- for _, issVal := range val.([]interface{}) {
+ for _, issVal := range val.([]any) {
ap.Issuers = append(ap.Issuers, issVal.(certmagic.Issuer))
}
}