mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Much improved MeshAgent and javascript module support.
This commit is contained in:
parent
3ca77afac3
commit
66bb176a12
18 changed files with 291 additions and 46 deletions
|
@ -24,6 +24,7 @@ module.exports.CreateMeshRelay = function (parent, ws, req) {
|
|||
if (obj.remoteaddr.startsWith('::ffff:')) { obj.remoteaddr = obj.remoteaddr.substring(7); }
|
||||
|
||||
if (obj.id == undefined) { obj.ws.close(); obj.id = null; return null; } // Attempt to connect without id, drop this.
|
||||
ws._socket.setKeepAlive(true, 0); // Set TCP keep alive
|
||||
|
||||
if (req.query.auth == null) {
|
||||
// Use ExpressJS session, check if this session is a logged in user, at least one of the two connections will need to be authenticated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue