mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +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) {
|
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 {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user