Fixed 404 error with mstsc.html, #3927

This commit is contained in:
Ylian Saint-Hilaire 2022-05-02 22:09:06 -07:00
parent 09881d06f5
commit 96dab9ab3e
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ Type.prototype.read = function(s) {
if(oldValue !== this.value) { if(oldValue !== this.value) {
log.error('constant value mismatch ' + 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 { else {

View File

@ -6028,8 +6028,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
}); });
} }
// Setup MSTSC.js if needed // Setup RDP unless indicated as disabled
if (domain.mstsc === true) { if (domain.mstsc !== false) {
obj.app.get(url + 'mstsc.html', function (req, res) { handleMSTSCRequest(req, res, 'mstsc'); }); obj.app.get(url + 'mstsc.html', function (req, res) { handleMSTSCRequest(req, res, 'mstsc'); });
obj.app.ws(url + 'mstscrelay.ashx', function (ws, req) { obj.app.ws(url + 'mstscrelay.ashx', function (ws, req) {
const domain = getDomain(req); const domain = getDomain(req);