Updated snapshot metadata
Bryan Roe committed
May 21, 2020 at 13:22 UTC
17d6a3604c4131c2fe3ea762eab57fc202abe7b2
1 file changed
+13
-1
agents/meshcore.js
+13
-1
@@ -1018,6 +1018,7 @@ function createMeshCore(agent) {
1018
s.httprequest = this;
1019
s.end = onTunnelClosed;
1020
s.tunnel = this;
1021
+ s.descriptorMetadata = "MeshAgent_relayTunnel";
1022
1023
if (require('MeshAgent').idleTimeout != null)
1024
{
@@ -1167,6 +1168,8 @@ function createMeshCore(agent) {
1168
return;
1169
}
1170
1171
+ this.descriptorMetadata = "Remote Terminal";
1172
+
1173
if (process.platform == 'win32')
1174
{
1175
if (!require('win-terminal').PowerShellCapable() && (this.httprequest.protocol == 6 || this.httprequest.protocol == 9))
@@ -1450,6 +1453,8 @@ function createMeshCore(agent) {
1453
return;
1454
}
1455
1456
+ this.descriptorMetadata = "Remote KVM";
1457
+
1458
// Look for a TSID
1459
var tsid = null;
1460
if ((this.httprequest.xoptions != null) && (typeof this.httprequest.xoptions.tsid == 'number')) { tsid = this.httprequest.xoptions.tsid; }
@@ -1655,7 +1660,12 @@ function createMeshCore(agent) {
1660
this.on('data', onTunnelControlData);
1661
//this.write('MeshCore KVM Hello!1');
1662
1658
- } else if (this.httprequest.protocol == 5) {
1663
+ } else if (this.httprequest.protocol == 5)
1664
+ {
1665
+ //
1666
+ // Remote Files
1667
+ //
1668
+
1669
// Check user access rights for files
1670
if (((this.httprequest.rights & MESHRIGHT_REMOTECONTROL) == 0) || ((this.httprequest.rights != 0xFFFFFFFF) && ((this.httprequest.rights & MESHRIGHT_NOFILES) != 0))) {
1671
// Disengage this tunnel, user does not have the rights to do this!!
@@ -1665,6 +1675,8 @@ function createMeshCore(agent) {
1675
return;
1676
}
1677
1678
+ this.descriptorMetadata = "Remote Files";
1679
+
1680
// Add the files session to the count to update the server
1681
if (this.httprequest.userid != null) {
1682
if (tunnelUserCount.files[this.httprequest.userid] == null) { tunnelUserCount.files[this.httprequest.userid] = 1; } else { tunnelUserCount.files[this.httprequest.userid]++; }