Skip to content

Commit 1ff1ad8

Browse files
committed
Normalize domain before managing
Fix github.com/caddyserver/caddy/issues/6456
1 parent 16e2e0b commit 1ff1ad8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,11 @@ func (cfg *Config) manageAll(ctx context.Context, domainNames []string, async bo
370370
}
371371

372372
for _, domainName := range domainNames {
373+
domainName = normalizedName(domainName)
374+
373375
// if on-demand is configured, defer obtain and renew operations
374376
if cfg.OnDemand != nil {
375-
cfg.OnDemand.hostAllowlist[normalizedName(domainName)] = struct{}{}
377+
cfg.OnDemand.hostAllowlist[domainName] = struct{}{}
376378
continue
377379
}
378380

0 commit comments

Comments
 (0)