Compare commits

..

2 Commits

Author SHA1 Message Date
FloppyMacguffum
af0a814375
Merge c0bf9b3254 into 1687d30417 2024-11-28 10:47:31 -08:00
FloppyMacguffum
c0bf9b3254 Took a tip from lax1dude. 2024-11-28 10:46:18 -08:00

View File

@ -189,7 +189,7 @@ export class Proxy extends EventEmitter {
} }
}, this.LOGIN_TIMEOUT); }, this.LOGIN_TIMEOUT);
try { 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) { if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) {
return ws.close(); return ws.close();
} }