Compare commits

..

1 Commits

Author SHA1 Message Date
FloppyMacguffum
193075fcd6
Merge c38227b2fe into 1687d30417 2024-11-19 22:37:35 -08:00

View File

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