mirror of
https://github.com/go-acme/lego.git
synced 2025-04-26 09:13:10 +02:00
Skip solving challenges when authz is already valid (fixes #267)
This commit is contained in:
parent
eb7c5e6bb6
commit
b2d7a1821e
@ -509,6 +509,10 @@ func (c *Client) solveChallenges(challenges []authorizationResource) map[string]
|
|||||||
// loop through the resources, basically through the domains.
|
// loop through the resources, basically through the domains.
|
||||||
failures := make(map[string]error)
|
failures := make(map[string]error)
|
||||||
for _, authz := range challenges {
|
for _, authz := range challenges {
|
||||||
|
if authz.Body.Status == "valid" {
|
||||||
|
// Boulder might recycle already-valid authz, see issue #267
|
||||||
|
continue
|
||||||
|
}
|
||||||
// no solvers - no solving
|
// no solvers - no solving
|
||||||
if solvers := c.chooseSolvers(authz.Body, authz.Domain); solvers != nil {
|
if solvers := c.chooseSolvers(authz.Body, authz.Domain); solvers != nil {
|
||||||
for i, solver := range solvers {
|
for i, solver := range solvers {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user