Skip to content

Commit

Permalink
Normalize domain before managing
Browse files Browse the repository at this point in the history
Fix github.com/caddyserver/caddy/issues/6456
  • Loading branch information
mholt committed Jul 22, 2024
1 parent 16e2e0b commit 1ff1ad8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,11 @@ func (cfg *Config) manageAll(ctx context.Context, domainNames []string, async bo
}

for _, domainName := range domainNames {
domainName = normalizedName(domainName)

// if on-demand is configured, defer obtain and renew operations
if cfg.OnDemand != nil {
cfg.OnDemand.hostAllowlist[normalizedName(domainName)] = struct{}{}
cfg.OnDemand.hostAllowlist[domainName] = struct{}{}
continue
}

Expand Down

0 comments on commit 1ff1ad8

Please sign in to comment.