From c0bf9b3254a2c2680b4b5fd72ad414559abc431a Mon Sep 17 00:00:00 2001 From: FloppyMacguffum Date: Thu, 28 Nov 2024 10:46:18 -0800 Subject: [PATCH] Took a tip from lax1dude. --- src/proxy/Proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/Proxy.ts b/src/proxy/Proxy.ts index 501042e..b918f35 100644 --- a/src/proxy/Proxy.ts +++ b/src/proxy/Proxy.ts @@ -189,7 +189,7 @@ export class Proxy extends EventEmitter { } }, this.LOGIN_TIMEOUT); try { - if (firstPacket.toString().toLowerCase() === "accept: motd") { + if (new RegExp("accept: motd", "i").test(firstPacket.toString())) { if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) { return ws.close(); }