go update
This commit is contained in:
parent
c7ffc9adc7
commit
c228c32f6c
5 changed files with 545 additions and 1150 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue