fixed crash when lego is disabled

This commit is contained in:
Niklas 2021-02-03 15:00:40 +01:00
parent 0fe5d73853
commit 8f499d8f85

View File

@ -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 // Check if it is a ACME DNS-01 challange
if handleACMERequest(w, r, acmeList) { if config.Lego.Enable && handleACMERequest(w, r, acmeList) {
return 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 // Check if it is a ACME DNS-01 challange
if handleACMERequest(w, r, acmeList) { if config.Lego.Enable && handleACMERequest(w, r, acmeList) {
return return
} }