mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 10:32:41 +00:00
no turnstile
This commit is contained in:
@@ -7,7 +7,6 @@ import path from "path";
|
|||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { WebSocket, WebSocketServer } from "ws";
|
import { WebSocket, WebSocketServer } from "ws";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { GameEnv } from "../core/configuration/Config";
|
|
||||||
import { GameType } from "../core/game/Game";
|
import { GameType } from "../core/game/Game";
|
||||||
import {
|
import {
|
||||||
ClientMessageSchema,
|
ClientMessageSchema,
|
||||||
@@ -428,7 +427,8 @@ export async function startWorker() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ServerEnv.env() !== GameEnv.Dev) {
|
const f = false;
|
||||||
|
if (f) {
|
||||||
const turnstileResult = await verifyTurnstileToken(
|
const turnstileResult = await verifyTurnstileToken(
|
||||||
ip,
|
ip,
|
||||||
clientMsg.turnstileToken,
|
clientMsg.turnstileToken,
|
||||||
|
|||||||
Reference in New Issue
Block a user