From 62fde92368a9676cd138b136506978fd2ae258a0 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 13 Mar 2025 20:39:35 +0800 Subject: [PATCH] Update dnsconfig.js --- dnsconfig.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index 390b3f0a6..233be9a7f 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -139,17 +139,15 @@ for (var subdomain in domains) { var reserved = require("./util/reserved.json"); -var excludedReserved = [ - "ns1", - "ns2", - "ns3", - "ns4" -] - // Handle reserved domains for (var i = 0; i < reserved.length; i++) { var subdomain = reserved[i]; - if (!excludedReserved.includes(subdomain)) { + if ( + subdomain !== "ns1" && + subdomain !== "ns2" && + subdomain !== "ns3" && + subdomain !== "ns4" + ) { records.push(CNAME(subdomain, "reserved.is-a.dev.", CF_PROXY_ON)); } }