diff --git a/services/dashboard/backend/templates/campaigns.html b/services/dashboard/backend/templates/campaigns.html index 1f1c876..9a49a6a 100644 --- a/services/dashboard/backend/templates/campaigns.html +++ b/services/dashboard/backend/templates/campaigns.html @@ -362,7 +362,7 @@ function renderScatter() { onClick: (e, els) => { if (els.length) { const m = els[0].element.$context.raw._meta; - window.location.href = `/ip/${encodeURIComponent(fmtIP(m.ip))}`; + window.location.href = `/ip/${encodeURIComponent(String(m.ip||'').replace('::ffff:',''))}`; } }, }, @@ -488,7 +488,7 @@ function renderGraph() { const rect = canvas.getBoundingClientRect(); const mx = e.clientX - rect.left, my = e.clientY - rect.top; const hit = nodes.find(n => Math.hypot(n.x-mx, n.y-my) <= n.radius+2); - if (hit) window.location.href = `/ip/${encodeURIComponent(fmtIP(hit.id))}`; + if (hit) window.location.href = `/ip/${encodeURIComponent(String(hit.id||'').replace('::ffff:',''))}`; }); canvas.style.cursor = 'default'; canvas.addEventListener('mousemove', e => { @@ -561,8 +561,10 @@ async function selectCampaign(cid) { document.getElementById('member-count').textContent = `(${members.length})`; // Members table - document.getElementById('members-body').innerHTML = members.map(m => ` -