Update comment

This commit is contained in:
Sefinek 2024-09-18 12:55:28 +02:00
parent 683aa1f6a7
commit 81c7fd21c4

View file

@ -9,15 +9,15 @@ module.exports = it => {
{ label: 'Timestamp', value: it.datetime },
{ label: 'Ray ID', value: it.rayName },
{ label: 'Rule ID', value: it.ruleId },
{ label: 'User agent', value: it.userAgent || 'Empty string' }
{ label: 'UA', value: it.userAgent || 'Empty string' }
];
const reportLines = fields
.filter(field => field.value)
.map(field => `${field.label}: ${field.value}`);
return `IP ${it.clientIP} [${it.clientCountryName}] triggered Cloudflare WAF (${it.source}).
return `${it.clientIP} [${it.clientCountryName}] triggered Cloudflare WAF (${it.source}).
${reportLines.join('\n')}
Report generated by Node-Cloudflare-WAF-AbuseIPDB (https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB)`;
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`;
};