fix CNAME validation when proxied

This commit is contained in:
William Harrison authored and GitHub committed 2025-10-24 19:18:52 +08:00
1 parent a5eb4ecbd4
commit e52fa41d95
1 file changed
+1
+1
View File
@@ -290,6 +290,7 @@ t("All files should have valid records", (t) => {
// Record type combinations validation
if (recordKeys.includes("CNAME") && !data.proxied) {
t.is(recordKeys.length, 1, `${file}: CNAME records cannot be combined with other records unless proxied`);
t.true(!recordKeys.includes("A") && !recordKeys.includes("AAAA"), `${file}: CNAME records cannot be combined with A or AAAA records`);
}
if (recordKeys.includes("NS")) {
t.true(