From 502a8979a82cc414a3b56b373349d6bfd81a80df Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 15 Jul 2016 21:28:49 -0600 Subject: [PATCH] Propagate DNS provider plugins to caddy package so -plugins shows them --- caddytls/tls.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caddytls/tls.go b/caddytls/tls.go index ace25880..a5c67c31 100644 --- a/caddytls/tls.go +++ b/caddytls/tls.go @@ -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 (