dont log amt wsman end events

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2025-04-21 16:09:39 +01:00
parent 134ca4f025
commit c6928846d0

View File

@ -5003,6 +5003,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
// Log the disconnection
if (ws.time) {
if (req.query.p == 2) { // Only log event if Intel Redirection, otherwise hundreds of logs for WSMAN are recorded
var msg = 'Ended relay session', msgid = 9, ip = ((ciraconn != null) ? ciraconn.remoteAddr : (((conn & 4) != 0) ? node.host : req.clientIp));
var nodeid = node._id;
var meshid = node.meshid;
@ -5011,6 +5012,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
obj.parent.DispatchEvent(['*', user._id, nodeid, meshid], obj, event);
}
}
}
// Websocket closed, close the CIRA channel and TLS session.
if (ws.forwardclient) {