mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-27 23:03:37 -05:00
Fix bug renewing certs affecting Caddyfiles using wildcard addresses
A Caddyfile using *.example.com as its site address would be subject to this bug at renewal time, as it would use the literal "*.example.com" value instead of the name being passed in to obtain a certificate. This change fixes the LoadSite call so that it looks in the proper directory for the certificate resources.
This commit is contained in:
parent
1ea96def31
commit
a251831feb
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ func (c *Config) renewCertName(name string, allowPrompts bool) error {
|
|||
}()
|
||||
|
||||
// Prepare for renewal (load PEM cert, key, and meta)
|
||||
siteData, err := storage.LoadSite(c.Hostname)
|
||||
siteData, err := storage.LoadSite(name)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue