Fix a record check.

This commit is contained in:
Tweak authored and GitHub committed 2023-01-19 18:05:29 -07:00
1 parent 4b58208325
commit b84db8edf0
1 file changed
+4 -1
+4 -1
View File
@@ -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