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

Added full agent ping/pong support on SSH/SFTP sessions.

This commit is contained in:
Ylian Saint-Hilaire 2022-05-05 16:16:58 -07:00
parent 93e8f2cdcf
commit 5869782bdf
3 changed files with 61 additions and 28 deletions

View file

@ -109,6 +109,8 @@ var CreateAgentRedirect = function (meshserver, module, serverPublicNamePort, au
} else if (controlMsg.type == 'webrtc2') {
// TODO: Resume/Start sending data over WebRTC
}
} else if (controlMsg.type == 'ping') { // if we get a ping, respond with a pong.
obj.sendCtrlMsg('{"ctrlChannel":"102938","type":"pong"}');
}
}