mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-14 10:18:41 +00:00
Fix a record check.
This commit is contained in:
1 parent
4b58208325
commit
b84db8edf0
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user