mirror of https://github.com/xwiki-labs/cryptpad
lint compliance
This commit is contained in:
parent
13f92370cb
commit
fc3620d2bb
|
@ -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,
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue