This commit is contained in:
William Harrison authored and GitHub committed 2023-05-01 12:49:31 +08:00
1 parent 37a5a7e583
commit 4a0ffa2227
1 file changed
+2 -2
+2 -2
View File
@@ -13,7 +13,7 @@ fs.readdirSync("domains").forEach(file => {
const info = `${domain} ${recordType} ${value}`;
try {
exec(`ping ${recordValue}`);
exec(`ping -c 1 ${value}`);
console.log(`PASS ${info}`);
fs.appendFileSync("ping_results.txt", `PASS ${info}\n`);
} catch {
@@ -25,7 +25,7 @@ fs.readdirSync("domains").forEach(file => {
const info = `${domain} ${recordType} ${recordValue}`;
try {
exec(`ping ${recordValue}`);
exec(`ping -c 1 ${recordValue}`);
console.log(`PASS ${info}`);
fs.appendFileSync("ping_results.txt", `PASS ${info}\n`);
} catch {