From c38227b2fe5c3522ec965c44220bd79a34506fbd Mon Sep 17 00:00:00 2001 From: FloppyMacguffum Date: Tue, 19 Nov 2024 21:06:27 -0800 Subject: [PATCH] Fixes to part of issue #35 --- 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 f002e2b..501042e 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() === "Accept: MOTD") { + if (firstPacket.toString().toLowerCase() === "accept: motd") { if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) { return ws.close(); }