mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2025-01-08 15:34:11 -08:00
Compare commits
1 Commits
af0a814375
...
193075fcd6
Author | SHA1 | Date | |
---|---|---|---|
|
193075fcd6 |
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user