0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

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

This commit is contained in:
Matthew Holt 2016-07-15 21:28:49 -06:00
parent d6110f8e9e
commit 502a8979a8

View file

@ -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)
// 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 (