Update config.default.js

This commit is contained in:
Sefinek committed 2026-02-13 10:26:40 +01:00
1 parent c68274f406
commit d64e583c6b
1 file changed
+2 -3
+2 -3
View File
@@ -29,13 +29,12 @@ exports.MAIN = {
// Generates a report comment. Please do not remove the source link, I would greatly appreciate it! Thank you. // Generates a report comment. Please do not remove the source link, I would greatly appreciate it! Thank you.
const serverId = this.MAIN.SERVER_ID ? `on ${this.MAIN.SERVER_ID} ` : ''; const serverId = this.MAIN.SERVER_ID ? `on ${this.MAIN.SERVER_ID} ` : '';
exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) => exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) =>
`UFW blocked traffic ${serverId}[${dpt}/${proto?.toLowerCase()}] | ` + `Blocked by UFW ${serverId}[${dpt}/${proto?.toLowerCase()}] | SPT: ${spt} | TTL: ${ttl} | LEN: ${len} | TOS: ${tos} • ` +
`SRC port: ${spt} | TTL: ${ttl} | LEN: ${len} | TOS: ${tos} | ` +
'Reported by: github.com/sefinek/UFW-AbuseIPDB-Reporter'; 'Reported by: github.com/sefinek/UFW-AbuseIPDB-Reporter';
// Alternative version: // Alternative version:
// exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) => // exports.REPORT_COMMENT = ({ date, srcIp, dstIp, proto, spt, dpt, In, Out, mac, len, ttl, id, tos, prec, res, window, urgp, syn }, fullLog) =>
// `Blocked by UFW ${serverId}[${dpt}/${proto?.toLowerCase()}]. Generated by: https://github.com/sefinek/UFW-AbuseIPDB-Reporter`; // `Blocked by UFW ${serverId}[${dpt}/${proto?.toLowerCase()}]. Generated by: github.com/sefinek/UFW-AbuseIPDB-Reporter`;
// See: https://www.abuseipdb.com/categories // See: https://www.abuseipdb.com/categories