mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
Fixed 404 error with mstsc.html, #3927
This commit is contained in:
parent
09881d06f5
commit
96dab9ab3e
@ -145,7 +145,7 @@ Type.prototype.read = function(s) {
|
||||
|
||||
if(oldValue !== this.value) {
|
||||
log.error('constant value mismatch ' + oldValue + ' != ' + this.value);
|
||||
throw new error.ProtocolError("NODE_RDP_CORE_TYPE_CONSTANT_VALUE_MISMATCH");
|
||||
throw new error.ProtocolError("NODE_RDP_CORE_TYPE_CONSTANT_VALUE_MISMATCH", oldValue, this.value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -6028,8 +6028,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
});
|
||||
}
|
||||
|
||||
// Setup MSTSC.js if needed
|
||||
if (domain.mstsc === true) {
|
||||
// Setup RDP unless indicated as disabled
|
||||
if (domain.mstsc !== false) {
|
||||
obj.app.get(url + 'mstsc.html', function (req, res) { handleMSTSCRequest(req, res, 'mstsc'); });
|
||||
obj.app.ws(url + 'mstscrelay.ashx', function (ws, req) {
|
||||
const domain = getDomain(req);
|
||||
|
Loading…
Reference in New Issue
Block a user