mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved multi-desktop support
This commit is contained in:
parent
ca94c192ac
commit
2526a0841c
12 changed files with 249 additions and 58 deletions
|
@ -226,7 +226,7 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
|
|||
var meshIdStart = '/' + username;
|
||||
obj.db.GetAllType('mesh', function (err, docs) {
|
||||
var mesh = null;
|
||||
for (var i in docs) { if (docs[i]._id.indexOf(meshIdStart) > 0) { mesh = docs[i]; break; } }
|
||||
for (var i in docs) { if (docs[i]._id.replace(/\@/g, 'X').replace(/\$/g, 'X').indexOf(meshIdStart) > 0) { mesh = docs[i]; break; } }
|
||||
if (mesh == null) { Debug(1, 'MPS:Mesh not found', username, password); SendUserAuthFail(socket); return -1; }
|
||||
|
||||
// If this is a agent-less mesh, use the device guid 3 times as ID.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue