This commit is contained in:
Sefinek 2024-12-25 01:10:11 +01:00
parent 25376cfb75
commit 83571456df
2 changed files with 2 additions and 2 deletions

View file

@ -74,4 +74,4 @@ const categories = {
}, },
}; };
exports.DETERMINE_CATEGORIES = (proto, dpt) => categories[proto]?.[dpt] || '14'; // Default: Port Scan exports.DETERMINE_CATEGORIES = ({ proto, dpt }) => categories[proto]?.[dpt] || '14'; // Default: Port Scan

View file

@ -93,7 +93,7 @@ const processLogLine = async line => {
return; return;
} }
const categories = config.DETERMINE_CATEGORIES(proto, dpt); const categories = config.DETERMINE_CATEGORIES(logData);
const comment = config.REPORT_COMMENT(logData, line, SERVER_ID); const comment = config.REPORT_COMMENT(logData, line, SERVER_ID);
if (await reportToAbuseIPDb(logData, categories, comment)) { if (await reportToAbuseIPDb(logData, categories, comment)) {