Update
This commit is contained in:
parent
5117d68023
commit
4f6a532481
1 changed files with 7 additions and 1 deletions
8
index.js
8
index.js
|
|
@ -83,6 +83,12 @@ const reportIP = async (event, url, country, cycleErrorCounts) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
try {
|
||||||
|
process.send('ready');
|
||||||
|
} catch (err) {
|
||||||
|
log('info', `Failed to send ready signal to parent process. ${err.message}`);
|
||||||
|
}
|
||||||
|
|
||||||
log('info', 'Starting IP reporting process...');
|
log('info', 'Starting IP reporting process...');
|
||||||
let cycleId = 1;
|
let cycleId = 1;
|
||||||
|
|
||||||
|
|
@ -117,7 +123,7 @@ const reportIP = async (event, url, country, cycleErrorCounts) => {
|
||||||
if (!wasImageRequestLogged(ip, reportedIPs)) {
|
if (!wasImageRequestLogged(ip, reportedIPs)) {
|
||||||
logToCSV(event.rayName, ip, url, 'Skipped - Image Request', country);
|
logToCSV(event.rayName, ip, url, 'Skipped - Image Request', country);
|
||||||
|
|
||||||
if (imageRequestLogged) return;
|
if (imageRequestLogged) break;
|
||||||
log('info', 'Skipping image requests in this cycle...');
|
log('info', 'Skipping image requests in this cycle...');
|
||||||
imageRequestLogged = true;
|
imageRequestLogged = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue