This commit is contained in:
Sefinek committed 2025-05-13 22:58:06 +02:00
1 parent 2189dffd5c
commit 5f2b5c7997
3 files changed
+21 -26

No files matched your search

+3 -5
View File
@@ -148,6 +148,9 @@ const processLogLine = async (line, test = false) => {
await require('./scripts/services/version.js');
}
// Fetch IPs
await refreshServerIPs();
// Load cache
await loadReportedIPs();
@@ -158,11 +161,6 @@ const processLogLine = async (line, test = false) => {
await sendBulkReport();
}
// Fetch IPs
logger.log('Trying to fetch your IPv4 and IPv6 address from api.sefinek.net...');
await refreshServerIPs();
logger.log(`Fetched ${getServerIPs()?.length} of your IP addresses. If any of them accidentally appear in the UFW logs, they will be ignored.`, 1);
// Check UFW_LOG_FILE
if (!fs.existsSync(UFW_LOG_FILE)) {
logger.log(`Log file ${UFW_LOG_FILE} does not exist`, 3);