mirror of
https://github.com/key-networks/ztncui.git
synced 2025-06-07 18:53:45 +02:00
Display peer address
This commit is contained in:
parent
5f17ef931e
commit
0c3b2effc6
1 changed files with 10 additions and 3 deletions
|
@ -95,7 +95,7 @@ block net_content
|
||||||
td(width='17%')
|
td(width='17%')
|
||||||
| Peer status
|
| Peer status
|
||||||
td(width='13%')
|
td(width='13%')
|
||||||
| Peer latency
|
| Peer address / latency
|
||||||
each member in members
|
each member in members
|
||||||
- const peer = member.peer;
|
- const peer = member.peer;
|
||||||
tr
|
tr
|
||||||
|
@ -133,8 +133,15 @@ block net_content
|
||||||
else
|
else
|
||||||
span(style='color: red;') OFFLINE
|
span(style='color: red;') OFFLINE
|
||||||
td
|
td
|
||||||
if (peer && peer.latency != -1)
|
if (peer)
|
||||||
| #{peer.latency} ms
|
each path in peer.paths
|
||||||
|
- const [ip, port] = path.address.split('/');
|
||||||
|
= ip
|
||||||
|
span(style='color: gray;') /#{port}
|
||||||
|
= ' '
|
||||||
|
if (peer.latency != -1)
|
||||||
|
br
|
||||||
|
| (#{peer.latency} ms)
|
||||||
else
|
else
|
||||||
.alert.alert-info
|
.alert.alert-info
|
||||||
strong There are no members on this network - invite users to join #{network.nwid}
|
strong There are no members on this network - invite users to join #{network.nwid}
|
||||||
|
|
Loading…
Add table
Reference in a new issue