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:
parent
d6110f8e9e
commit
502a8979a8
1 changed files with 2 additions and 0 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue