Add announce address to debug page

This commit is contained in:
Shaun Orssaud 2024-01-08 16:28:24 +09:00
parent 52217354f0
commit 2c468fa66b
2 changed files with 9 additions and 2 deletions

View File

@ -31,6 +31,12 @@ function NodeInfoItemComponent(props: {
{props.data.spr}
</p>
</div>
<div id="info-row">
<p>
<span>Announce Adresses: </span>
{props.data.announceAddresses.join(", ")}
</p>
</div>
<div>
<h3>Local Node</h3>
<div id="info-row">
@ -53,8 +59,8 @@ function NodeInfoItemComponent(props: {
{`${props.data.table.localNode.seen
.toString()[0]
.toUpperCase()}${props.data.table.localNode.seen
.toString()
.slice(1)}`}
.toString()
.slice(1)}`}
</p>
</div>
</div>

View File

@ -5,6 +5,7 @@ export interface DebugNodeInfoModel {
spr: string;
table: Table;
codex: Codex;
announceAddresses: string[];
}
export interface Codex {