From a292dd5bdfa554afe977d8b7bd46b99913e80531 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Tue, 18 Mar 2025 22:29:50 +0100 Subject: [PATCH] Fixes again --- index.js | 8 +++++--- scripts | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 53626f0..0080366 100644 --- a/index.js +++ b/index.js @@ -117,13 +117,15 @@ const processLogLine = async (line, test = false) => { }; (async () => { - log(0, `v${version} (https://github.com/sefinek/UFW-AbuseIPDB-Reporter)`); + log(0, `Version ${version} - https://github.com/sefinek/UFW-AbuseIPDB-Reporter`); loadReportedIPs(); + + log(0, 'Fetching your IP addresses...'); await refreshServerIPs(); if (!fs.existsSync(UFW_LOG_FILE)) { - log(2, `Log file ${UFW_LOG_FILE} does not exist.`); + log(2, `Log file ${UFW_LOG_FILE} does not exist`); return; } @@ -134,7 +136,7 @@ const processLogLine = async (line, test = false) => { const stats = fs.statSync(path); if (stats.size < fileOffset) { fileOffset = 0; - log(1, 'The file has been truncated, and the offset has been reset.'); + log(1, 'The file has been truncated, and the offset has been reset'); } fs.createReadStream(path, { start: fileOffset, encoding: 'utf8' }).on('data', chunk => { diff --git a/scripts b/scripts index c550075..150fb53 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit c550075d2dd7b115bc2ee9f19fdf89e23eec997f +Subproject commit 150fb53fbdd0ff6429c298f7d697488854328a5f