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 (
"net"
"strings"
"github.com/mholt/caddy"
"github.com/xenolf/lego/acme"
)
......@@ -149,6 +150,7 @@ var dnsProviders = make(map[string]DNSProviderConstructor)
// RegisterDNSProvider registers provider by name for solving the ACME DNS challenge.
func RegisterDNSProvider(name string, provider DNSProviderConstructor) {
dnsProviders[name] = provider
caddy.RegisterPlugin("tls.dns."+name, caddy.Plugin{})
}
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