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(); }