mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
fix sessionrecording for not indexing (#5490)
This commit is contained in:
parent
b4887b7766
commit
e62bfadb76
2 changed files with 3 additions and 3 deletions
|
@ -342,7 +342,7 @@ function CreateDesktopMultiplexor(parent, domain, nodeid, id, func) {
|
||||||
parent.parent.fs.close(fd);
|
parent.parent.fs.close(fd);
|
||||||
|
|
||||||
// Now that the recording file is closed, check if we need to index this file.
|
// Now that the recording file is closed, check if we need to index this file.
|
||||||
if (domain.sessionrecording.index !== false) { parent.parent.certificateOperations.acceleratorPerformOperation('indexMcRec', filename); }
|
if (domain.sessionrecording.index && domain.sessionrecording.index !== false) { parent.parent.certificateOperations.acceleratorPerformOperation('indexMcRec', filename); }
|
||||||
|
|
||||||
// Add a event entry about this recording
|
// Add a event entry about this recording
|
||||||
var basefile = parent.parent.path.basename(filename);
|
var basefile = parent.parent.path.basename(filename);
|
||||||
|
@ -1436,4 +1436,4 @@ a given size and timestamp. When looking at network traffic the flags are import
|
||||||
|
|
||||||
- If traffic has the first (0x0001) flag set, the data is binary otherwise it's a string.
|
- If traffic has the first (0x0001) flag set, the data is binary otherwise it's a string.
|
||||||
- If the traffic has the second (0x0002) flag set, traffic is coming from the user's browser, if not, it's coming from the MeshAgent.
|
- If the traffic has the second (0x0002) flag set, traffic is coming from the user's browser, if not, it's coming from the MeshAgent.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -745,7 +745,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
|
||||||
parent.parent.fs.close(logfile.fd);
|
parent.parent.fs.close(logfile.fd);
|
||||||
|
|
||||||
// Now that the recording file is closed, check if we need to index this file.
|
// Now that the recording file is closed, check if we need to index this file.
|
||||||
if (domain.sessionrecording.index !== false) { parent.parent.certificateOperations.acceleratorPerformOperation('indexMcRec', tag.logfile.filename); }
|
if (domain.sessionrecording.index && domain.sessionrecording.index !== false) { parent.parent.certificateOperations.acceleratorPerformOperation('indexMcRec', tag.logfile.filename); }
|
||||||
|
|
||||||
// Compute session length
|
// Compute session length
|
||||||
var sessionLength = null;
|
var sessionLength = null;
|
||||||
|
|
Loading…
Reference in a new issue