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

More work on web based SSH support.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-29 15:51:06 -07:00
parent 87dc3c354d
commit abbb6be431
4 changed files with 132 additions and 124 deletions

View file

@ -5576,7 +5576,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
}
// Setup SSH if needed
if (domain.mstsc === true) {
if (domain.ssh === true) {
obj.app.get(url + 'ssh.html', function (req, res) { handleMSTSCRequest(req, res, 'ssh'); });
obj.app.ws(url + 'ssh/relay.ashx', function (ws, req) {
const domain = getDomain(req);