mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-24 06:26:05 -08:00
Fixes to part of issue #35
This commit is contained in:
parent
1687d30417
commit
c38227b2fe
|
@ -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