diff --git a/public/hop-display.js b/public/hop-display.js index 458f55cf..fc93a018 100644 --- a/public/hop-display.js +++ b/public/hop-display.js @@ -26,7 +26,7 @@ window.HopDisplay = (function() { const totalRegional = entry.totalRegional || 0; const globalFallback = entry.globalFallback || false; const unreliable = entry.unreliable || false; - const display = name ? escapeHtml(opts.truncate ? name.slice(0, opts.truncate) : name) : h; + const display = opts.hexMode ? h : (name ? escapeHtml(opts.truncate ? name.slice(0, opts.truncate) : name) : h); // Build tooltip let title = h; diff --git a/public/index.html b/public/index.html index 334ed82a..7071a4c9 100644 --- a/public/index.html +++ b/public/index.html @@ -83,10 +83,10 @@ - + - + diff --git a/public/packets.js b/public/packets.js index ee5f260e..3eb3f49a 100644 --- a/public/packets.js +++ b/public/packets.js @@ -130,10 +130,7 @@ } function renderHop(h) { - if (showHexHashes) { - return `${escapeHtml(h)}`; - } - return HopDisplay.renderHop(h, hopNameCache[h]); + return HopDisplay.renderHop(h, hopNameCache[h], { hexMode: showHexHashes }); } function renderPath(hops) {