File tree 1 file changed +2
-2
lines changed
caddyconfig/httpcaddyfile
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ func (st ServerType) buildTLSApp(
340
340
combined = reflect .New (reflect .TypeOf (cl )).Elem ()
341
341
}
342
342
clVal := reflect .ValueOf (cl )
343
- for i := 0 ; i < clVal .Len (); i ++ {
343
+ for i := range clVal .Len () {
344
344
combined = reflect .Append (combined , clVal .Index (i ))
345
345
}
346
346
loadersByName [name ] = combined .Interface ().(caddytls.CertificateLoader )
@@ -469,7 +469,7 @@ func (st ServerType) buildTLSApp(
469
469
globalPreferredChains := options ["preferred_chains" ]
470
470
hasGlobalACMEDefaults := globalEmail != nil || globalACMECA != nil || globalACMECARoot != nil || globalACMEDNS != nil || globalACMEEAB != nil || globalPreferredChains != nil
471
471
if hasGlobalACMEDefaults {
472
- for i := 0 ; i < len ( tlsApp .Automation .Policies ); i ++ {
472
+ for i := range tlsApp .Automation .Policies {
473
473
ap := tlsApp .Automation .Policies [i ]
474
474
if len (ap .Issuers ) == 0 && automationPolicyHasAllPublicNames (ap ) {
475
475
// for public names, create default issuers which will later be filled in with configured global defaults
You can’t perform that action at this time.
0 commit comments