mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
feat: add RemoveAll to SolverManager
This commit is contained in:
parent
b1d2190c1d
commit
a4cf795410
1 changed files with 5 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ func (c *SolverManager) Remove(chlgType challenge.Type) {
|
|||
delete(c.solvers, chlgType)
|
||||
}
|
||||
|
||||
// RemoveAll removes all challenge types from the available solvers.
|
||||
func (c *SolverManager) RemoveAll() {
|
||||
clear(c.solvers)
|
||||
}
|
||||
|
||||
// Checks all challenges from the server in order and returns the first matching solver.
|
||||
func (c *SolverManager) chooseSolver(authz acme.Authorization) solver {
|
||||
// Allow to have a deterministic challenge order
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue