mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-12-22 07:14:13 -08:00
Took a tip from lax1dude.
This commit is contained in:
parent
c38227b2fe
commit
c0bf9b3254
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user