Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahid Farid committed Mar 22, 2024
1 parent b6650e6 commit 1a20796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ async function testIPs(ipList) {
const response = await fetch(url, {
signal: controller.signal,
});

console.log(`${ip} ${ch} OK`)
testResult++;
} catch (error) {
console.log(`${ip} ${ch} Fail`, error.name)
if (!["AbortError", "TypeError"].includes(error.name)) {
testResult++;
}
Expand Down

0 comments on commit 1a20796

Please sign in to comment.