Rain: fix hex bytes source — check pkt.raw, pkt.raw_hex, pkt.packet.raw_hex

This commit is contained in:
you
2026-03-22 07:58:52 +00:00
parent e0e6b3f6a6
commit aa667fafe9
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@
<script src="nodes.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>
<script src="traces.js?v=1774135052" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>
<script src="live.js?v=1774166030" onerror="console.error('Failed to load:', this.src)"></script>
<script src="live.js?v=1774166332" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observers.js?v=1774290000" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observer-detail.js?v=1774028201" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1774126708" onerror="console.error('Failed to load:', this.src)"></script>

View File

@@ -1798,7 +1798,7 @@
const decoded = pkt.decoded || {};
const hops = decoded.path?.hops || [];
const hopCount = Math.max(1, hops.length);
const rawHex = pkt.raw || '';
const rawHex = pkt.raw || pkt.raw_hex || (pkt.packet && pkt.packet.raw_hex) || '';
const bytes = [];
for (let i = 0; i < rawHex.length; i += 2) {
bytes.push(rawHex.slice(i, i + 2).toUpperCase());