Fix CNAME updates to use content as target host

This commit is contained in:
beatz174-bit committed 2026-04-29 14:58:52 +10:00
1 parent ee7a24a0da
commit a64aa173ab
4 files changed
+84 -6

No files matched your search

+1 -1
View File
@@ -343,7 +343,7 @@ func buildDNSRecordUpsertPayload(recordType string, nodeName string, content *st
payload.IPv6Address = *normalizedContent
}
case "CNAME":
if payload.Host == "" && normalizedContent != nil {
if normalizedContent != nil {
payload.Host = *normalizedContent
}
default: