This commit is contained in:
Sefinek 2024-08-18 15:41:31 +02:00
parent 5117d68023
commit 4f6a532481

View file

@ -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;
} }