diff --git a/meshuser.js b/meshuser.js index 85d431f8..8625fc53 100644 --- a/meshuser.js +++ b/meshuser.js @@ -448,6 +448,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use var serverinfo = { domain: domain.id, name: domain.dns ? domain.dns : parent.certificates.CommonName, mpsname: parent.certificates.AmtMpsName, mpsport: mpsport, mpspass: args.mpspass, port: httpport, emailcheck: ((parent.parent.mailserver != null) && (domain.auth != 'sspi') && (domain.auth != 'ldap') && (args.lanonly != true) && (parent.certificates.CommonName != null) && (parent.certificates.CommonName.indexOf('.') != -1) && (user._id.split('/')[2].startsWith('~') == false)), domainauth: (domain.auth == 'sspi'), serverTime: Date.now() }; serverinfo.languages = parent.renderLanguages; serverinfo.tlshash = Buffer.from(parent.webCertificateFullHashs[domain.id], 'binary').toString('hex').toUpperCase(); // SHA384 of server HTTPS certificate + serverinfo.agentCertHash = parent.agentCertificateHashBase64; if ((domain.sessionrecording) && (domain.sessionrecording.onlyselecteddevicegroups === true)) { serverinfo.devGroupSessionRecording = 1; } // Allow enabling of session recording if ((parent.parent.config.domains[domain.id].amtacmactivation != null) && (parent.parent.config.domains[domain.id].amtacmactivation.acmmatch != null)) { var matchingDomains = []; diff --git a/views/default.handlebars b/views/default.handlebars index 90e5eb35..27591bf9 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -4355,7 +4355,11 @@ function addAgentToMesh(meshid) { if (xxdialogMode) return false; var mesh = meshes[meshid], x = '', installType = 0, moreoptions = ''; - x += addHtmlValue("Operating System", ''); + + var opts = ''; + x += addHtmlValue("Operating System", opts); var servername = serverinfo.name; if ((servername.indexOf('.') == -1) || ((features & 2) != 0)) { servername = window.location.hostname; } // If the server name is not set or it's in LAN-only mode, use the URL hostname as server name. @@ -4396,6 +4400,9 @@ x += addHtmlValue("Mesh Agent", 'macOS Agent (64bit) '); x += ''; + // QR code agent install + x += '
"; + // Windows agent uninstall x += '