mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-05 20:41:43 -07:00
Updated to include Physical address, port, and latency
This commit is contained in:
parent
cd6699d9b7
commit
ade8c3596e
2 changed files with 22 additions and 2 deletions
|
@ -45,10 +45,13 @@ async function getMemberAdditionalData(data) {
|
|||
if (peer.paths[0]) {
|
||||
peerData.lastOnline = peer.paths[0].lastReceive;
|
||||
peerData.physicalAddress = peer.paths[0].address.split("/")[0];
|
||||
peerData.physicalPort = peer.paths[0].address.split("/")[1];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
peerData.online = 0;
|
||||
}
|
||||
|
||||
delete data.lastAuthorizedCredential;
|
||||
delete data.lastAuthorizedCredentialType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue