mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
- Make the "checking your browser for robots" look more like cloudflare
- Reduce the default concurrency of the frontend script to 2 threads because any higher seems to crash firefox (and its quick enough even with 2 threads anyway) - Remove the footerlogo from challenge and maintenance page, and update the link
This commit is contained in:
@ -13,7 +13,7 @@ if (window.Worker && crypto.subtle) {
|
||||
const challenge = document.querySelector('[data-pow]').dataset.pow;
|
||||
const difficulty = 0;
|
||||
const start = Date.now();
|
||||
const threads = Math.min(4,Math.ceil(window.navigator.hardwareConcurrency/2));
|
||||
const threads = Math.min(2,Math.ceil(window.navigator.hardwareConcurrency/2));
|
||||
let finished = false;
|
||||
const messageHandler = (e) => {
|
||||
if (finished) { return; }
|
||||
|
Reference in New Issue
Block a user