mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-27 22:45:58 -05:00
Added last agent address to mobile app.
This commit is contained in:
parent
43b78d210e
commit
a23fd05ad3
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
2
public/scripts/amt-wsman-0.2.0-min.js
vendored
File diff suppressed because one or more lines are too long
@ -1086,6 +1086,14 @@
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'lastconnect': {
|
||||||
|
var node = getNodeFromId(message.nodeid);
|
||||||
|
if (node != null) {
|
||||||
|
node.lastconnect = message.time;
|
||||||
|
node.lastaddr = message.addr;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case 'getnetworkinfo': {
|
case 'getnetworkinfo': {
|
||||||
if (currentNode._id != message.nodeid) return;
|
if (currentNode._id != message.nodeid) return;
|
||||||
updateDeviceDetails(getNodeFromId(message.nodeid), null, message);
|
updateDeviceDetails(getNodeFromId(message.nodeid), null, message);
|
||||||
@ -2655,6 +2663,7 @@
|
|||||||
QH('p10html2', '');
|
QH('p10html2', '');
|
||||||
powerTimelineReq = currentNode._id;
|
powerTimelineReq = currentNode._id;
|
||||||
meshserver.send({ action: 'powertimeline', nodeid: currentNode._id });
|
meshserver.send({ action: 'powertimeline', nodeid: currentNode._id });
|
||||||
|
meshserver.send({ action: 'lastconnect', nodeid: currentNode._id });
|
||||||
meshserver.send({ action: 'getsysinfo', nodeid: currentNode._id });
|
meshserver.send({ action: 'getsysinfo', nodeid: currentNode._id });
|
||||||
meshserver.send({ action: 'getnetworkinfo', nodeid: currentNode._id });
|
meshserver.send({ action: 'getnetworkinfo', nodeid: currentNode._id });
|
||||||
QH('p10detailshtml', '');
|
QH('p10detailshtml', '');
|
||||||
@ -4424,6 +4433,7 @@
|
|||||||
function nobreak(x) { return x.split(' ').join(' '); }
|
function nobreak(x) { return x.split(' ').join(' '); }
|
||||||
function getUserName(userid) { if (users && users[userid] != null) return users[userid].name; return userid.split('/')[2]; }
|
function getUserName(userid) { if (users && users[userid] != null) return users[userid].name; return userid.split('/')[2]; }
|
||||||
function addDetailItem(title, value, state) { return '<table style=width:100%><td>' + nobreak(title) + '<td style=text-align:right>' + value + '</table>'; }
|
function addDetailItem(title, value, state) { return '<table style=width:100%><td>' + nobreak(title) + '<td style=text-align:right>' + value + '</table>'; }
|
||||||
|
function isPrivateIP(a) { return (a.startsWith('10.') || a.startsWith('172.16.') || a.startsWith('192.168.')); }
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user