lint compliance

This commit is contained in:
yflory 2024-03-15 16:39:24 +01:00
parent 13f92370cb
commit fc3620d2bb
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ module.exports.create = function (Env, cb) {
cb("ERESTRICTED", allowed); cb("ERESTRICTED", allowed);
}); });
}, },
sessionClose: function (userId, reason, ip) { sessionClose: function (userId, reason) {
HK.closeNetfluxSession(Env, userId); HK.closeNetfluxSession(Env, userId);
if (Env.logIP && !['SOCKET_CLOSED', 'INACTIVITY'].includes(reason)) { if (Env.logIP && !['SOCKET_CLOSED', 'INACTIVITY'].includes(reason)) {
return void Log.info('USER_DISCONNECTED_ERROR', { return void Log.info('USER_DISCONNECTED_ERROR', {
@ -125,7 +125,7 @@ module.exports.create = function (Env, cb) {
reason: reason, reason: reason,
}); });
}, },
sessionOpen: function (userId, ip, oo) { sessionOpen: function (userId, ip) {
if (!Env.logIP) { return; } if (!Env.logIP) { return; }
Log.info('USER_CONNECTION', { Log.info('USER_CONNECTION', {
userId: userId, userId: userId,

View File

@ -198,7 +198,7 @@ const wsProxy = createProxyMiddleware({
target: proxyTarget.href, target: proxyTarget.href,
ws: true, ws: true,
logLevel: 'error', logLevel: 'error',
onProxyReqWs: function (proxyReq, req, socket, options, head) { onProxyReqWs: function (proxyReq, req) {
proxyReq.setHeader('X-Real-Ip', req.socket.remoteAddress); proxyReq.setHeader('X-Real-Ip', req.socket.remoteAddress);
}, },
logProvider: (p) => { logProvider: (p) => {