From 15764a17b6dc3350fc622d3a372aec79e5a889c2 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 19 Dec 2018 21:06:16 +0100 Subject: [PATCH] fix: errors management in the prober. (#736) --- challenge/resolver/prober.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/challenge/resolver/prober.go b/challenge/resolver/prober.go index 1f7aa7e4..2f477f9c 100644 --- a/challenge/resolver/prober.go +++ b/challenge/resolver/prober.go @@ -110,7 +110,7 @@ func sequentialSolve(authSolvers []*selectedAuthSolver, failures obtainError) { // Solve challenge err := authSolver.solver.Solve(authSolver.authz) if err != nil { - failures[authSolver.authz.Identifier.Value] = err + failures[domain] = err cleanUp(authSolver.solver, authSolver.authz) continue } @@ -149,14 +149,15 @@ func parallelSolve(authSolvers []*selectedAuthSolver, failures obtainError) { // Finally solve all challenges for real for _, authSolver := range authSolvers { authz := authSolver.authz - if failures[authz.Identifier.Value] != nil { + domain := challenge.GetTargetedDomain(authz) + if failures[domain] != nil { // already failed in previous loop continue } err := authSolver.solver.Solve(authz) if err != nil { - failures[authz.Identifier.Value] = err + failures[domain] = err } } }