Fixes
This commit is contained in:
parent
25376cfb75
commit
83571456df
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
2
index.js
2
index.js
|
|
@ -93,7 +93,7 @@ const processLogLine = async line => {
|
|||
return;
|
||||
}
|
||||
|
||||
const categories = config.DETERMINE_CATEGORIES(proto, dpt);
|
||||
const categories = config.DETERMINE_CATEGORIES(logData);
|
||||
const comment = config.REPORT_COMMENT(logData, line, SERVER_ID);
|
||||
|
||||
if (await reportToAbuseIPDb(logData, categories, comment)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue