Commit 502a8979 authored by Matthew Holt's avatar Matthew Holt

Propagate DNS provider plugins to caddy package so -plugins shows them

parent d6110f8e
...@@ -19,6 +19,7 @@ import ( ...@@ -19,6 +19,7 @@ import (
"net" "net"
"strings" "strings"
"github.com/mholt/caddy"
"github.com/xenolf/lego/acme" "github.com/xenolf/lego/acme"
) )
...@@ -149,6 +150,7 @@ var dnsProviders = make(map[string]DNSProviderConstructor) ...@@ -149,6 +150,7 @@ var dnsProviders = make(map[string]DNSProviderConstructor)
// RegisterDNSProvider registers provider by name for solving the ACME DNS challenge. // RegisterDNSProvider registers provider by name for solving the ACME DNS challenge.
func RegisterDNSProvider(name string, provider DNSProviderConstructor) { func RegisterDNSProvider(name string, provider DNSProviderConstructor) {
dnsProviders[name] = provider dnsProviders[name] = provider
caddy.RegisterPlugin("tls.dns."+name, caddy.Plugin{})
} }
var ( var (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment