fix strict syntax on http.js

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle 2024-01-23 21:25:56 +07:00
parent ec773eebe4
commit 9ed79a0892

View File

@ -73,7 +73,7 @@ server.on('request', (req, res) => {
});
server.on('upgrade', (req, sock, head) => {
for (i of lastConn) {
for (const i of lastConn) {
if (config.incomming_ratelimit > (Date.now() - i[1])) continue;
lastConn.delete(i[0]);
}