Fixes to part of issue #35

This commit is contained in:
FloppyMacguffum 2024-11-19 21:06:27 -08:00
parent 1687d30417
commit c38227b2fe

View File

@ -189,7 +189,7 @@ export class Proxy extends EventEmitter {
} }
}, this.LOGIN_TIMEOUT); }, this.LOGIN_TIMEOUT);
try { try {
if (firstPacket.toString() === "Accept: MOTD") { if (firstPacket.toString().toLowerCase() === "accept: motd") {
if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) { if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) {
return ws.close(); return ws.close();
} }