mirror of
https://github.com/go-acme/lego.git
synced 2024-12-25 11:02:56 +02:00
Change solver interface definition
This commit is contained in:
parent
e600438aeb
commit
2b99a75aff
@ -34,7 +34,7 @@ type User interface {
|
||||
|
||||
type solver interface {
|
||||
CanSolve() bool
|
||||
Solve(challenge)
|
||||
Solve(challenge challenge, domain string)
|
||||
}
|
||||
|
||||
// Client is the user-friendy way to ACME
|
||||
|
@ -6,6 +6,6 @@ func (s *dvsniChallenge) CanSolve() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (s *dvsniChallenge) Solve(challenge challenge) {
|
||||
func (s *dvsniChallenge) Solve(challenge challenge, domain string) {
|
||||
|
||||
}
|
||||
|
@ -7,5 +7,6 @@ func (s *simpleHTTPChallenge) CanSolve() bool {
|
||||
}
|
||||
|
||||
func (s *simpleHTTPChallenge) Solve(challenge challenge) {
|
||||
func (s *simpleHTTPChallenge) Solve(chlng challenge, domain string) {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user