mirror of
https://github.com/go-acme/lego.git
synced 2024-12-26 03:09:37 +02:00
fix: errors management in the prober. (#736)
This commit is contained in:
parent
765b80cd41
commit
15764a17b6
@ -110,7 +110,7 @@ func sequentialSolve(authSolvers []*selectedAuthSolver, failures obtainError) {
|
|||||||
// Solve challenge
|
// Solve challenge
|
||||||
err := authSolver.solver.Solve(authSolver.authz)
|
err := authSolver.solver.Solve(authSolver.authz)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failures[authSolver.authz.Identifier.Value] = err
|
failures[domain] = err
|
||||||
cleanUp(authSolver.solver, authSolver.authz)
|
cleanUp(authSolver.solver, authSolver.authz)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -149,14 +149,15 @@ func parallelSolve(authSolvers []*selectedAuthSolver, failures obtainError) {
|
|||||||
// Finally solve all challenges for real
|
// Finally solve all challenges for real
|
||||||
for _, authSolver := range authSolvers {
|
for _, authSolver := range authSolvers {
|
||||||
authz := authSolver.authz
|
authz := authSolver.authz
|
||||||
if failures[authz.Identifier.Value] != nil {
|
domain := challenge.GetTargetedDomain(authz)
|
||||||
|
if failures[domain] != nil {
|
||||||
// already failed in previous loop
|
// already failed in previous loop
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
err := authSolver.solver.Solve(authz)
|
err := authSolver.solver.Solve(authz)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
failures[authz.Identifier.Value] = err
|
failures[domain] = err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user