set trust proxy to 3

This commit is contained in:
Evan
2025-03-01 09:42:25 -08:00
parent d726fd66b5
commit 3b492df56b
4 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -153,7 +153,7 @@
</g>
</svg>
<div class="flex justify-center text-sm font-bold mt-[-5px] logo-version">
v0.17.0
v0.17.1
</div>
</div>
-1
View File
@@ -411,7 +411,6 @@ export class GameServer {
}
if (this.turns.length % 10 == 0 && this.turns.length != 0) {
const lastHashTurn = this.turns.length - 10;
console.log(`checking validity for turn ${lastHashTurn}`);
let { mostCommonHash, outOfSyncClients } =
this.findOutOfSyncClients(lastHashTurn);
+1 -1
View File
@@ -23,7 +23,7 @@ app.use(express.json());
app.use(express.static(path.join(__dirname, "../../out")));
app.use(express.json());
app.set("trust proxy", 2);
app.set("trust proxy", 3);
app.use(
rateLimit({
windowMs: 1000, // 1 second
+1 -1
View File
@@ -56,7 +56,7 @@ export function startWorker() {
next();
});
app.set("trust proxy", 2);
app.set("trust proxy", 3);
app.use(express.json());
app.use(express.static(path.join(__dirname, "../../out")));
app.use(