Change MAX_CSV_SIZE_BYTES to 4 * 1024 * 1024
This commit is contained in:
parent
04a737334c
commit
54e36e8867
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ const path = require('node:path');
|
||||||
const log = require('../utils/log.js');
|
const log = require('../utils/log.js');
|
||||||
|
|
||||||
const CSV_FILE_PATH = path.join(__dirname, '..', 'reported_ips.csv');
|
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';
|
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);
|
if (!fs.existsSync(CSV_FILE_PATH)) fs.writeFileSync(CSV_FILE_PATH, CSV_HEADER);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue