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);
|
||||
});
|
||||
},
|
||||
sessionClose: function (userId, reason, ip) {
|
||||
sessionClose: function (userId, reason) {
|
||||
HK.closeNetfluxSession(Env, userId);
|
||||
if (Env.logIP && !['SOCKET_CLOSED', 'INACTIVITY'].includes(reason)) {
|
||||
return void Log.info('USER_DISCONNECTED_ERROR', {
|
||||
|
@ -125,7 +125,7 @@ module.exports.create = function (Env, cb) {
|
|||
reason: reason,
|
||||
});
|
||||
},
|
||||
sessionOpen: function (userId, ip, oo) {
|
||||
sessionOpen: function (userId, ip) {
|
||||
if (!Env.logIP) { return; }
|
||||
Log.info('USER_CONNECTION', {
|
||||
userId: userId,
|
||||
|
|
|
@ -198,7 +198,7 @@ const wsProxy = createProxyMiddleware({
|
|||
target: proxyTarget.href,
|
||||
ws: true,
|
||||
logLevel: 'error',
|
||||
onProxyReqWs: function (proxyReq, req, socket, options, head) {
|
||||
onProxyReqWs: function (proxyReq, req) {
|
||||
proxyReq.setHeader('X-Real-Ip', req.socket.remoteAddress);
|
||||
},
|
||||
logProvider: (p) => {
|
||||
|
|
Loading…
Reference in New Issue