From 4a0ffa222747c8ddbbd174d98484cc465865daa2 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Mon, 1 May 2023 12:49:31 +0800 Subject: [PATCH] fix --- scripts/ping.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ping.js b/scripts/ping.js index e7e666c..ab62e06 100644 --- a/scripts/ping.js +++ b/scripts/ping.js @@ -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 {