Update comment

This commit is contained in:
Sefinek 2024-09-25 14:24:28 +02:00
parent 278a101f4f
commit 7e6cbf8e12

View file

@ -1,7 +1,7 @@
module.exports = it => {
const fields = [
{ label: 'Action taken', value: it.action?.toUpperCase() },
{ label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription}) [${it.clientCountryName}]` },
{ label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription})` },
{ label: 'Protocol', value: `${it.clientRequestHTTPProtocol} (method ${it.clientRequestHTTPMethodName})` },
{ label: 'Domain', value: it.clientRequestHTTPHost },
{ label: 'Endpoint', value: it.clientRequestPath },
@ -16,7 +16,7 @@ module.exports = it => {
.filter(field => field.value)
.map(field => `${field.label}: ${field.value}`);
return `Triggered Cloudflare WAF (${it.source}).
return `Triggered Cloudflare WAF (${it.source}) from ${it.clientCountryName}.
${reportLines.join('\n')}
Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`;