Update comment
This commit is contained in:
parent
683aa1f6a7
commit
81c7fd21c4
1 changed files with 3 additions and 3 deletions
|
|
@ -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`;
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue