diff --git a/internal/cooldns.go b/internal/cooldns.go index cebf855..5170efb 100644 --- a/internal/cooldns.go +++ b/internal/cooldns.go @@ -76,7 +76,7 @@ func createServer(zones zoneMap, config config, aclList map[string]*net.IPNet, b } // Check if it is a ACME DNS-01 challange - if handleACMERequest(w, r, acmeList) { + if config.Lego.Enable && handleACMERequest(w, r, acmeList) { return } @@ -112,7 +112,7 @@ func createServer(zones zoneMap, config config, aclList map[string]*net.IPNet, b } // Check if it is a ACME DNS-01 challange - if handleACMERequest(w, r, acmeList) { + if config.Lego.Enable && handleACMERequest(w, r, acmeList) { return }