summaryrefslogtreecommitdiff
path: root/modules/caddytls
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-30 18:17:39 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-30 18:17:39 -0600
commit1fa8c185a893381c06960142d35a557787f61bdc (patch)
tree83a7ac001e2c6f5b679e3fffd8b999d32b65d2a2 /modules/caddytls
parenta1796c2f147e6a3d395e015600b51b67136292eb (diff)
go.mod: Remove DNSProviderMaker interface; update to lego 3.6
Diffstat (limited to 'modules/caddytls')
-rw-r--r--modules/caddytls/acmeissuer.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/caddytls/acmeissuer.go b/modules/caddytls/acmeissuer.go
index 7296d28..dcdfc13 100644
--- a/modules/caddytls/acmeissuer.go
+++ b/modules/caddytls/acmeissuer.go
@@ -91,11 +91,7 @@ func (m *ACMEIssuer) Provision(ctx caddy.Context) error {
if err != nil {
return fmt.Errorf("loading DNS provider module: %v", err)
}
- prov, err := val.(DNSProviderMaker).NewDNSProvider()
- if err != nil {
- return fmt.Errorf("making DNS provider: %v", err)
- }
- m.Challenges.DNS.provider = prov
+ m.Challenges.DNS.provider = val.(challenge.Provider)
}
// add any custom CAs to trust store
@@ -221,12 +217,6 @@ func onDemandAskRequest(ask string, name string) error {
return nil
}
-// DNSProviderMaker is a type that can create a new DNS provider.
-// Modules in the tls.dns namespace should implement this interface.
-type DNSProviderMaker interface {
- NewDNSProvider() (challenge.Provider, error)
-}
-
// ExternalAccountBinding contains information for
// binding an external account to an ACME account.
type ExternalAccountBinding struct {