mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2025-01-08 07:24:10 -08:00
Merge c38227b2fe
into 1687d30417
This commit is contained in:
commit
193075fcd6
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user