diff --git a/scripts/generateComment.js b/scripts/generateComment.js index 6e8e638..7b0e97f 100644 --- a/scripts/generateComment.js +++ b/scripts/generateComment.js @@ -1,7 +1,7 @@ module.exports = it => { const fields = [ { label: 'Action taken', value: it.action?.toUpperCase() }, - { label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription})` }, + { label: 'ASN', value: `${it.clientAsn} (${it.clientASNDescription}) [${it.clientCountryName}]` }, { 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 `${it.clientIP} [${it.clientCountryName}] triggered Cloudflare WAF (${it.source}). + return `Triggered Cloudflare WAF (${it.source}). ${reportLines.join('\n')} Report generated by Node-Cloudflare-WAF-AbuseIPDB https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB`;