From b84db8edf0229d436a7ebd64af0b6117272e0cca Mon Sep 17 00:00:00 2001 From: Tweak Date: Thu, 19 Jan 2023 18:05:29 -0700 Subject: [PATCH] Fix a record check. --- utils/checkRecords.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/checkRecords.js b/utils/checkRecords.js index a9dc68a..2f2cfab 100644 --- a/utils/checkRecords.js +++ b/utils/checkRecords.js @@ -8,7 +8,10 @@ function checkRecords(data) { // Check A record if (recordType.toLowerCase() === 'a') { - return checkIfValidIP(data.target[recordType].value); + for (const record of data.target[recordType].value) { + if (checkIfValidIP(record) == false) return false; + } + return true; } // Check CNAME record