From 0f5a82127447c30a354c6d4676b84e1cb3fa85c6 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Wed, 18 Sep 2024 12:58:26 +0200 Subject: [PATCH] Update comment --- scripts/generateComment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`;