Spaces:
Running
Running
JOHN SILLVESTOR commited on
Update Node HTTP service
Browse files
server.js
CHANGED
|
@@ -807,10 +807,6 @@ async function handleStream(req, res, url, msgId) {
|
|
| 807 |
return res.end();
|
| 808 |
}
|
| 809 |
const ip = clientIp(req);
|
| 810 |
-
if (!ticket.p || ticket.p !== ipTag(ip)) {
|
| 811 |
-
res.writeHead(403);
|
| 812 |
-
return res.end();
|
| 813 |
-
}
|
| 814 |
if (!takeStream(ip)) {
|
| 815 |
res.setHeader("Retry-After", "1");
|
| 816 |
res.writeHead(429);
|
|
|
|
| 807 |
return res.end();
|
| 808 |
}
|
| 809 |
const ip = clientIp(req);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 810 |
if (!takeStream(ip)) {
|
| 811 |
res.setHeader("Retry-After", "1");
|
| 812 |
res.writeHead(429);
|