caddytls: Temporarily treat "" and "@" as equivalent for DNS publication
Fixes https://github.com/caddyserver/caddy/issues/6895#issuecomment-2750111096
This commit is contained in:
parent
7672b7848f
commit
ea77a9ab67
1 changed files with 2 additions and 1 deletions
|
|
@ -660,7 +660,8 @@ nextName:
|
||||||
var httpsRec libdns.Record
|
var httpsRec libdns.Record
|
||||||
var nameHasExistingRecord bool
|
var nameHasExistingRecord bool
|
||||||
for _, rec := range recs {
|
for _, rec := range recs {
|
||||||
if rec.Name == relName {
|
// TODO: providers SHOULD normalize root-level records to be named "@"; remove the extra conditions when the transition to the new semantics is done
|
||||||
|
if rec.Name == relName || (rec.Name == "" && relName == "@") {
|
||||||
// CNAME records are exclusive of all other records, so we cannot publish an HTTPS
|
// CNAME records are exclusive of all other records, so we cannot publish an HTTPS
|
||||||
// record for a domain that is CNAME'd. See #6922.
|
// record for a domain that is CNAME'd. See #6922.
|
||||||
if rec.Type == "CNAME" {
|
if rec.Type == "CNAME" {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue