You've already forked caddy-opnsense-blocker
Simplify Spamhaus status display
This commit is contained in:
@@ -854,7 +854,7 @@ const ipDetailsHTML = `<!doctype html>
|
|||||||
rows.push('<div><strong>Abuse contact</strong>: ' + escapeHtml(investigation.registration.abuse_email || '—') + '</div>');
|
rows.push('<div><strong>Abuse contact</strong>: ' + escapeHtml(investigation.registration.abuse_email || '—') + '</div>');
|
||||||
}
|
}
|
||||||
if (investigation.reputation) {
|
if (investigation.reputation) {
|
||||||
const label = investigation.reputation.spamhaus_listed ? ('listed (' + (investigation.reputation.spamhaus_codes || []).join(', ') + ')') : 'not listed';
|
const label = investigation.reputation.spamhaus_listed ? 'Yes' : 'No';
|
||||||
rows.push('<div><strong>Spamhaus</strong>: ' + escapeHtml(label) + '</div>');
|
rows.push('<div><strong>Spamhaus</strong>: ' + escapeHtml(label) + '</div>');
|
||||||
if (investigation.reputation.error) {
|
if (investigation.reputation.error) {
|
||||||
rows.push('<div><strong>Spamhaus error</strong>: ' + escapeHtml(investigation.reputation.error) + '</div>');
|
rows.push('<div><strong>Spamhaus error</strong>: ' + escapeHtml(investigation.reputation.error) + '</div>');
|
||||||
|
|||||||
Reference in New Issue
Block a user