go update

This commit is contained in:
saces 2026-02-15 15:21:12 +01:00
parent c7ffc9adc7
commit c228c32f6c
5 changed files with 545 additions and 1150 deletions

View file

@ -27,7 +27,8 @@ 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()
if !ctx.AppIsConfigured("dns") {
_, err := ctx.AppIfConfigured("dns")
if err != nil {
p.logger.Warn("DNS app not yet configured")
}
app, err := ctx.App("dns")