mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2025-01-09 07:54: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);
|
}, this.LOGIN_TIMEOUT);
|
||||||
try {
|
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) {
|
if (!this.ratelimit.motd.consume(req.socket.remoteAddress).success) {
|
||||||
return ws.close();
|
return ws.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user