dns already taken

This commit is contained in:
saces 2026-02-16 23:29:45 +01:00
parent 65945b6e73
commit 5604c3232a
5 changed files with 10 additions and 10 deletions

View file

@ -27,11 +27,11 @@ func (Provider) CaddyModule() caddy.ModuleInfo {
// Provision sets up the module. Implements caddy.Provisioner.
func (p *Provider) Provision(ctx caddy.Context) error {
p.logger = ctx.Logger()
_, err := ctx.AppIfConfigured("dns")
_, err := ctx.AppIfConfigured("dns01")
if err != nil {
p.logger.Warn("DNS app not yet configured")
}
app, err := ctx.App("dns")
app, err := ctx.App("dns01")
if err != nil {
return err
}