From 54e36e886756d8848dfca38734ff39904a755a13 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Fri, 21 Mar 2025 10:18:59 +0100 Subject: [PATCH] Change `MAX_CSV_SIZE_BYTES` to `4 * 1024 * 1024` --- services/csv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/csv.js b/services/csv.js index e2c1a92..7db6377 100644 --- a/services/csv.js +++ b/services/csv.js @@ -3,7 +3,7 @@ const path = require('node:path'); const log = require('../utils/log.js'); const CSV_FILE_PATH = path.join(__dirname, '..', 'reported_ips.csv'); -const MAX_CSV_SIZE_BYTES = 5 * 1024 * 1024; // 5 MB +const MAX_CSV_SIZE_BYTES = 4 * 1024 * 1024; // 4 MB const CSV_HEADER = 'Timestamp,CF RayID,IP,Country,Hostname,Endpoint,User-Agent,Action taken,Status,Sefinek API\n'; if (!fs.existsSync(CSV_FILE_PATH)) fs.writeFileSync(CSV_FILE_PATH, CSV_HEADER);