1
0
mirror of https://github.com/go-acme/lego.git synced 2024-11-28 17:41:10 +02:00

Skip solving challenges when authz is already valid (fixes #267)

This commit is contained in:
Matthew Holt 2016-08-16 13:50:56 -06:00
parent eb7c5e6bb6
commit b2d7a1821e

View File

@ -509,6 +509,10 @@ func (c *Client) solveChallenges(challenges []authorizationResource) map[string]
// loop through the resources, basically through the domains.
failures := make(map[string]error)
for _, authz := range challenges {
if authz.Body.Status == "valid" {
// Boulder might recycle already-valid authz, see issue #267
continue
}
// no solvers - no solving
if solvers := c.chooseSolvers(authz.Body, authz.Domain); solvers != nil {
for i, solver := range solvers {