1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added session disconnection log for desktop multiplex, #3437

This commit is contained in:
Ylian Saint-Hilaire 2022-01-10 15:28:46 -08:00
parent f8e9426350
commit 42137aa1d1
3 changed files with 20 additions and 2 deletions

View file

@ -1069,7 +1069,11 @@ function handleServerCommand(data) {
else if ((data.protocol == 'files') && (tunnels[i].protocol == 5)) { disconnect = true; }
else if ((data.protocol == 'tcp') && (tunnels[i].tcpport != null)) { disconnect = true; }
else if ((data.protocol == 'udp') && (tunnels[i].udpport != null)) { disconnect = true; }
if (disconnect) { if (tunnels[i].s != null) { tunnels[i].s.end(); } else { tunnels[i].end(); } }
if (disconnect) {
if (tunnels[i].s != null) { tunnels[i].s.end(); } else { tunnels[i].end(); }
// TODO: Log tunnel disconnection
}
}
}
break;