Skip to content

Commit

Permalink
gui: Display miner ip:port on account page.
Browse files Browse the repository at this point in the history
The miner ip:port are already present in the connected client info so
they can be displayed on the account page with only a minor change.

Previously only the name of the miner software and the hashrate were
displayed which made it impossible to distinguish which client was
which. Having the ip:port of the client isn't much better, but it's
definitely better than nothing.
  • Loading branch information
jholdstock committed Dec 4, 2023
1 parent 206c9fc commit 8ebd1cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gui/assets/templates/account.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ <h1>Connected Clients</h1>
<thead>
<tr>
<th>Miner</th>
<th>IP</th>
<th>Hash Rate</th>
</tr>
</thead>
<tbody id="account-clients-table">
{{ range .ConnectedClients }}
<tr>
<td>{{.Miner}}</td>
<td>{{.IP}}</td>
<td>{{.HashRate}}</td>
</tr>
{{else}}
Expand Down

0 comments on commit 8ebd1cb

Please sign in to comment.