diff --git a/public/index.html b/public/index.html index 5d0ecc0..6e8bb59 100644 --- a/public/index.html +++ b/public/index.html @@ -83,7 +83,7 @@ - + diff --git a/public/map.js b/public/map.js index 5c2c31c..19e1452 100644 --- a/public/map.js +++ b/public/map.js @@ -509,12 +509,17 @@ const loc = (node.lat && node.lon) ? `${node.lat.toFixed(5)}, ${node.lon.toFixed(5)}` : '—'; const lastAdvert = node.last_seen ? timeAgo(node.last_seen) : '—'; const roleBadge = `${(node.role || 'unknown').toUpperCase()}`; + const hs = node.hash_size || 1; + const hashPrefix = node.public_key ? node.public_key.slice(0, hs * 2).toUpperCase() : '—'; + const hashPrefixRow = `