mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-07 19:21:30 +00:00
temporarily disable turnstile
This commit is contained in:
@@ -40,6 +40,10 @@ const workerId = parseInt(process.env.WORKER_ID ?? "0");
|
|||||||
const log = logger.child({ comp: `w_${workerId}` });
|
const log = logger.child({ comp: `w_${workerId}` });
|
||||||
const playlist = new MapPlaylist();
|
const playlist = new MapPlaylist();
|
||||||
|
|
||||||
|
// TEMPORARY: Turnstile validation disabled while we diagnose intermittent
|
||||||
|
// invalid-input-response rejections in v31. Flip back to true to re-enable.
|
||||||
|
const TURNSTILE_ENABLED = false;
|
||||||
|
|
||||||
// Worker setup
|
// Worker setup
|
||||||
export async function startWorker() {
|
export async function startWorker() {
|
||||||
log.info(`Worker starting...`);
|
log.info(`Worker starting...`);
|
||||||
@@ -428,7 +432,10 @@ export async function startWorker() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.env() !== GameEnv.Dev) {
|
// TEMPORARY: Turnstile validation disabled while we diagnose
|
||||||
|
// intermittent invalid-input-response rejections in v31.
|
||||||
|
// Re-enable by flipping TURNSTILE_ENABLED back to true.
|
||||||
|
if (TURNSTILE_ENABLED && config.env() !== GameEnv.Dev) {
|
||||||
const turnstileResult = await verifyTurnstileToken(
|
const turnstileResult = await verifyTurnstileToken(
|
||||||
ip,
|
ip,
|
||||||
clientMsg.turnstileToken,
|
clientMsg.turnstileToken,
|
||||||
|
|||||||
Reference in New Issue
Block a user