mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-14 06:17:56 +00:00
Update for new format.
This commit is contained in:
1 parent
ffeac9cca1
commit
6b9eee3c24
1 file changed
+2
-2
@@ -2,10 +2,10 @@ const { checkIfValidIP, checkIfValidFQDN } = require('./utils.js');
|
||||
function checkRecords(data) {
|
||||
const recordType = Object.keys(data.target)[0]
|
||||
if (recordType.toLowerCase() === "a") {
|
||||
return checkIfValidIP(data.target[recordType])
|
||||
return checkIfValidIP(data.target[recordType].value)
|
||||
}
|
||||
if (recordType.toLowerCase() === "cname") {
|
||||
return checkIfValidFQDN(data.target[recordType])
|
||||
return checkIfValidFQDN(data.target[recordType].value)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user