mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Update challenge to skip undefined worker answers
This commit is contained in:
@ -218,6 +218,9 @@ const powFinished = new Promise((resolve) => {
|
|||||||
}
|
}
|
||||||
if (finished) return;
|
if (finished) return;
|
||||||
const [workerId, answer] = e.data;
|
const [workerId, answer] = e.data;
|
||||||
|
if (!answer) {
|
||||||
|
return console.warn("Worker", workerId, "Returned with undefined answer");
|
||||||
|
}
|
||||||
console.log(
|
console.log(
|
||||||
"Worker",
|
"Worker",
|
||||||
workerId,
|
workerId,
|
||||||
|
2
src/js/challenge.min.js
vendored
2
src/js/challenge.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user